in reply to deleteing array elements I get mad!!
This is one of those (many) places where use strict would have told you what the problem is.
What you're doing is effectively this:
use strict; use warnings; my $arr_ref = [1, 2, 3]; delete $arr_ref[0];
And running that gives the error:
Global symbol "@arr_ref" requires explicit package name
You have an array reference in $cashflow, but you're treating it as if it's an array.
"The first rule of Perl club is you do not talk about
Perl club."
-- Chip Salzenberg
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: deleteing array elements I get mad!!
by kurreburre (Acolyte) on Oct 03, 2006 at 12:20 UTC | |
by grep (Monsignor) on Oct 03, 2006 at 18:53 UTC |