> Hi all,
> I have a simple question in perl... I have an array -
>
> @a = (10,20,30,40);
>
> Since '$' gives the scalar of a array , i expect "print $a" to
> give the no. of elements in the array...
> But it dosent work..
$a has nothing whatsoever to do with @a. They are completely different
variables.
Re: Learning Perl ... it should be an array,... Then they'd be completely inaccessible to beginners.... that should be my $var.... so why is it redundant to point out that Perl is different from C here? ... (comp.lang.perl.misc)
Re: perl vs Unix grep ... variable indexCount on array and reintialized evry time. ...Perl is langauge to make things work at any cost. ... > grep but the shell scripts that use ... As far as I can tell from reading and research ... (comp.lang.perl)
FAQ 4.42 How can I tell whether a certain element is contained in a list or array? ... comes with the standard Perl distribution.... How can I tell whether a certain element is contained in a list or array?... used a hash, not a list or array, to store your data. ... The perlfaq-workers, a group of volunteers, maintain the perlfaq. ... (comp.lang.perl.misc)
Re: delimited data into nested array ... > file) into Perl as a two dimensional nested array.... not declared your variables and enabled strictures.... Here you are using symbolic references,... (comp.lang.perl.misc)
Re: delimited data into nested array ... > Perl as a two dimensional nested array....warnings is a more modern replacement for -w: ...strict helps catch common coding errors. ... (comp.lang.perl.misc)