Re: $# is no longer supported

2011-09-20 Thread Leo Lapworth
Hi, On 20 September 2011 16:50, Uri Guttman wrote: > >>>>> "DJ" == David Jacopille writes: > > DJ> I get a warning "$# is no longer supported". The program does > DJ> continue. > > DJ> Apparently $# and $* were deprecated in re

Re: $# is no longer supported

2011-09-20 Thread Uri Guttman
ariable DJ> I get a warning "$# is no longer supported". The program does DJ> continue. DJ> Apparently $# and $* were deprecated in regular expression context DJ> and that error message exactly is documented in CPAN. these work fine: perl -lwe '$x = [1,2]; pr

Re: $# is no longer supported

2011-09-20 Thread Shawn H Corey
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 $# a

$# is no longer supported

2011-09-20 Thread David Jacopille
To get highest index number on an array you use: $#array Doing this on an arrayref: $#{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