OT: Perl syntax Question
Taavi Burns
jaaaarel-Re5JQEeQqe8AvxtiuMwx3w at public.gmane.org
Mon Oct 24 15:08:56 UTC 2005
On 10/24/05, Joseph Kubik <josephkubik-Re5JQEeQqe8AvxtiuMwx3w at public.gmane.org> wrote:
> What does the following mean?
> ($#{$reg->{'sale'}{'items'}} == -1)
>
> As, in, What does $#{} really do?
It returns the index of the last element in the list (or -1 if there
are no elements in the list). See "man perldata" and search for $#
(in vi you'd do that by typing /\$\#).
--
taa
/*eof*/
--
The Toronto Linux Users Group. Meetings: http://tlug.ss.org
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://tlug.ss.org/subscribe.shtml
More information about the Legacy
mailing list