On 11-09-20 11:38 AM, David Jacopille wrote:
To get highest index number on an array you use:
$#array
Doing this on an arrayref:
$#{arrayref}
Try:
$#{$arrayref}
I get a warning "$# is no longer supported". The program does continue.
Apparently $# and $* were deprecated in regular expression context and that
error message exactly is documented in CPAN.
Seems like a bug in Perl (5.10.0), but perhaps I could be doing something to
make Perl believe I'm trying to use the deprecated $# regular expression
variable.
Any ideas on how I can remove the ambiguity and the warning?
Thanks,
Dave
--
Just my 0.00000002 million dollars worth,
Shawn
Confusion is the first step of understanding.
Programming is as much about organization and communication
as it is about coding.
The secret to great software: Fail early & often.
Eliminate software piracy: use only FLOSS.
"Make something worthwhile." -- Dear Hunter
--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/