cjk32 has asked for the wisdom of the Perl Monks concerning the following question:
I vaguely remember some sort of syntax along the lines of,my ($uid,$pgid) = (getpwnam("nobody"))[2..3];
but can't get it to work. Regards, Chrismy (,,$uid,$pid) = getpwnam("nobody");
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: What's the neatest way to extract two items from an array returned by a function?
by FunkyMonk (Bishop) on Aug 24, 2007 at 15:29 UTC | |
by cjk32 (Novice) on Aug 24, 2007 at 15:44 UTC | |
|
Re: What's the neatest way to extract two items from an array returned by a function?
by andreas1234567 (Vicar) on Aug 25, 2007 at 06:43 UTC |