in reply to What's the neatest way to extract two items from an array returned by a function?
Use undef:
my (undef, undef, $uid,$pid) = getpwnam("nobody");
but I prefer the slice, anyway:)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: What's the neatest way to extract two items from an array returned by a function?
by cjk32 (Novice) on Aug 24, 2007 at 15:44 UTC |