Bruno Veldeman wrote:
>
> And another thing:
> > print $dirs[$#dirs];
@list = ('one', 'two', 'three', 'four');
print $#list;
the output would be
3
$#somelist returns the last element number of an array. note this is
the element number, which starts at 0. to get the number of variables
in the array, use scalar():
print "$#list\n";
print scalar(@list);
would return
3
4
- Re: regex question Jeff 'japhy' Pinyan
- Re: regex question Michael Fowler
- Re: Re: Regex question Bruno Veldeman
- extracting substr William
- Re: extracting substr Karen Cravens
- Re: extracting substr Dave Cross
- Re: extracting substr Karen Cravens
- Re: extracting substr iain truskett
- Re: extracting substr William
- Re: extracting substr Matt Cauthorn
- Re: Regex question fliptop
- Re: Regex question Chas Owens
- regex question Josh
- Re: regex question Jeff 'japhy' Pinyan
- regex question [EMAIL PROTECTED]
- Re: regex question Jos I. Boumans
- RE: regex question MECKLIN, JOE (ASI)
- regex question rory oconnor
- RE: regex question James Kelty
- Re: regex question Johnathan Kupferer
- Re: regex question Jon Molin
