"$#{$array} "
- From: pande_vineet@xxxxxxxxxxx (Vineet Pande)
- Date: Fri, 29 Jul 2005 10:25:16 +0000
Hi,
I don't not understand how the $#{$array_r} returns "highest" element as 4 and not 5???
#!/usr/bin/perl
use warnings;
use strict;
my @array = (1,2,3,4,5);
my $array_r = \@array;
print "the highest element is number $#{$array_r}\n";Cheers V
_________________________________________________________________
Don't just search. Find. Check out the new MSN Search! http://search.msn.click-url.com/go/onm00200636ave/direct/01/
.
- Follow-Ups:
- Re: "$#{$array} "
- From: Jeff 'japhy' Pinyan
- Re: "$#{$array} "
- From: Umesh T G
- Re: "$#{$array} "
- Prev by Date: RE: error message with net::FTP
- Next by Date: Re: "$#{$array} "
- Previous by thread: Read a single line in a file.
- Next by thread: Re: "$#{$array} "
- Index(es):
Relevant Pages
|
|