in reply to Re: Re: where to look up "funny looking" perl notation (and an example)
in thread where to look up "funny looking" perl notation (and an example)
If it wasn't for the fact that you can change the base-index of perl arrays to something other then 0... But I've never seen anyone use that feature yet. The global parameter for the feature is '$['.
So use $# to get the last defined element index so you can safely add (or loop), and use scalar @array to find out how many elements there are in the array...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Re: where to look up "funny looking" perl notation (and an example)
by Mr. Muskrat (Canon) on Jan 21, 2003 at 20:52 UTC | |
by Gilimanjaro (Hermit) on Jan 21, 2003 at 20:57 UTC | |
|
Re4: where to look up "funny looking" perl notation (and an example)
by Hofmator (Curate) on Jan 22, 2003 at 13:22 UTC |