in reply to Odd behavior of non-array symbolic references with $# (was : array)

More info is needed. On my system (RedHat 7.2, perl 5.6.1), $#val is -1.

-derby

Doh: @+ (which is what $#{$var} is when $var is '+') is a perl predefined var that contains offsets of successful matches. Do you have a regex before this code? Check out perlvar for more on @+

Replies are listed 'Best First'.
Re: Re: array
by hotshot (Prior) on Apr 23, 2002 at 12:08 UTC
    I'm working with Red Hat 7.1 and perl 5.6.1

    Thanks.

    Hotshot