Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: getpwnam(@_) ???

by Fletch (Chancellor)
on Mar 31, 2011 at 18:21 UTC ( #896693=note: print w/replies, xml ) Need Help??


in reply to getpwnam(@_) ???

getpwnam imposes scalar context on its argument.

$ perl -le 'print prototype q{CORE::getpwnam}' $

That means that @_ is treated as the number of elements g1 was called with and I doubt you have a user named "1" on your system.

The cake is a lie.
The cake is a lie.
The cake is a lie.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://896693]
help
Chatterbox?
[ambrus]: "you are far more likely to be squished between two other dudes" => wait, really? aren't most planes, weighted by people traveling on it, so narrow that there are only two or three seats on each side of the one corridor, so only one third of the people ge
[ambrus]: t squished between two other people?

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (10)
As of 2017-12-18 13:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What programming language do you hate the most?




















    Results (486 votes). Check out past polls.

    Notices?