lapointd has asked for the wisdom of the Perl Monks concerning the following question:
and using it internal to the subroutine, like this:subroutine(\@list)
I get the folling error message, only in debug mode:$count=$#(@$listref);
The code works fine, and does the right thing, it just fails in debug mode. The inelegant work-around is to do an intermediate step:"Bizarre copy of ARRAY in leave at..."
Any ideas on this problem?my @local_array=@$list; my $count=$#local_array;
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Bizarre copy of ARRAY in leave at...
by BrowserUk (Patriarch) on Jan 19, 2004 at 17:36 UTC | |
by Anonymous Monk on Jan 20, 2004 at 02:02 UTC | |
Re: Bizarre copy of ARRAY in leave at...
by Zaxo (Archbishop) on Jan 20, 2004 at 06:45 UTC | |
Re: Bizarre copy of ARRAY in leave at...
by Abigail-II (Bishop) on Jan 19, 2004 at 16:39 UTC | |
Re: Bizarre copy of ARRAY in leave at...
by ysth (Canon) on Jan 20, 2004 at 07:45 UTC |