after which you can do things like:($a,$b,$c) = \(@array[3,5,7]);
assigning to an array also works:$$a =~ s/^\s+//; # remove leading white space from $array[3] $$b =~ s/\s+$//; # and trailing ws from $array[5] $$c++; # incremnt $array[7]
@y = \(@array[2..4,9]);
Maybe not hard to write, maybe a little obscure, but definitely very handy.
www.taxax.org
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Free, explosive, fun, thrill-packed, exciting adventure
by MeowChow (Vicar) on Jun 05, 2001 at 20:59 UTC |