dirko.van.schalkwyk has asked for the wisdom of the Perl Monks concerning the following question:
I need a pointer to what to search for in the following issue, so I may educate myself.
Currently code run in perl 5.8.8 will return the array length ,say given a array ref $a, via $#{@{$a}} . Say @a has 3 elements, the snippet will return 2.
But when I ran the code that does this in perl 5.10.1, it returns -1 for $#{@{$a}}.
Am I going mad, or just insane?
Thank you in advance
Dirko
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Perl 5.10.1 versus 5.8.8 with $#{}
by ikegami (Patriarch) on Feb 01, 2011 at 17:58 UTC | |
|
Re: Perl 5.10.1 versus 5.8.8 with $#{}
by kennethk (Abbot) on Feb 01, 2011 at 17:41 UTC | |
by dirko.van.schalkwyk (Initiate) on Feb 01, 2011 at 17:46 UTC | |
|
Re: Perl 5.10.1 versus 5.8.8 with $#{}
by Corion (Patriarch) on Feb 01, 2011 at 17:37 UTC | |
|
Re: Perl 5.10.1 versus 5.8.8 with $#{}
by wind (Priest) on Feb 01, 2011 at 17:36 UTC | |
by educated_foo (Vicar) on Feb 02, 2011 at 00:27 UTC | |
by wind (Priest) on Feb 02, 2011 at 01:08 UTC | |
|