in reply to Re: Re: Re: Returning first element of an array from a function
in thread Returning first element of an array from a function
# this: ($foo, undef, $bar) = split(/\./, $baz); # can also be done as: ($foo, $bar) = (split(/\./, $baz))[0,2]; # and this: (undef, $foo) = split(/\./, $bar); # can also be done as: ($foo) = (split(/\./, $bar))[1];
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Returning first element of an array from a function
by Anonymous Monk on Mar 17, 2004 at 09:10 UTC |