perl5ever has asked for the wisdom of the Perl Monks concerning the following question:
Output:sub g1 { getpwnam(@_) } sub g2 { getpwnam($_[0]) } print "g1: ", g1("root"), "\n"; print "g2: ", g2("root"), "\n";
g1: g2: rootx00root/root/bin/bash
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: getpwnam(@_) ???
by Fletch (Bishop) on Mar 31, 2011 at 18:21 UTC | |
Re: getpwnam(@_) ???
by ikegami (Patriarch) on Mar 31, 2011 at 18:19 UTC | |
Re: getpwnam(@_) ???
by wind (Priest) on Mar 31, 2011 at 18:21 UTC |