[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

[FWP] Shortest scalarizer?



I was being sloppy and did something like:

  printf "%-8s....", getpwuid($UID), ...

and of course, that didn't do what I wanted, since I needed scalar 
context on the getpwuid.  So I did the simple thing first:
      scalar(getpwuid($UID))
and that worked great but I found it pretty ugly..  So I tried to find 
something shorted and less obtrusive to 'scalarize' the arg.  the best I 
came up with is:
      ''.getpwuid($UID)

 /Bernie\
-- 
Bernie Cosell                     Fantasy Farm Fibers
mailto:bernie@fantasyfarm.com     Pearisburg, VA
    -->  Too many people, too few sheep  <--          

==== Want to unsubscribe from Fun With Perl?  Well, if you insist...
==== Send email to <fwp-request@technofile.org> with message _body_
====   unsubscribe