Re: syntax errors?
- From: tom@xxxxxxxxxxxxxx (Tom Phoenix)
- Date: Tue, 28 Mar 2006 17:51:48 -0800
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
.
- References:
- syntax errors?
- From: Christopher Spears
- syntax errors?
- Prev by Date: syntax errors?
- Next by Date: Re: syntax errors?
- Previous by thread: syntax errors?
- Next by thread: Re: syntax errors?
- Index(es):