in reply to Re: (jeffa) Re: Arrays
in thread How do I reset an array?
Also check out the difference between a list and an arrayuse strict; use Data::Dumper; print Dumper get_array(); print Dumper get_array_ref(); print Dumper scalar get_something(); print Dumper get_something(); sub get_array { return ('a'..'d'); } sub get_array_ref { return [('a'..'d')]; } sub get_something { return wantarray ? ('a'..'d') : 'scalar'; }
jeffa
L-LL-L--L-LL-L--L-LL-L-- -R--R-RR-R--R-RR-R--R-RR B--B--B--B--B--B--B--B-- H---H---H---H---H---H--- (the triplet paradiddle with high-hat)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: (jeffa) 3Re: Arrays
by Jaspersan (Beadle) on May 07, 2002 at 00:14 UTC | |
|
Re: (jeffa) 3Re: Arrays
by dsheroh (Monsignor) on May 06, 2002 at 21:56 UTC | |
by jeffa (Bishop) on May 06, 2002 at 22:21 UTC |