Re: syntax errors?



On 3/28/06, Christopher Spears <cspears2002@xxxxxxxxx> wrote:

my $sum{$source} += my
$total_bytes{$source}{$destination};

Am I missing something?

My guess is that my declarations have infested my program. Err, your program.

You can only use my() with complete variables, not with elements of a
hash or array. And I'm not sure what sense it would make, the way you
have it written, anyway. Does it fix anything to drop the extra 'my's?

Cheers!

--Tom Phoenix
Stonehenge Perl Training
.