Try this:
while (defined (my $one_line = <>)) { if ($one_line =~ !/^#+/) { ($source, $destination, $bytes) = split(/ /, $one_line); $net_activity{$source}{$destination} += $bytes; }# ignore comments }# read in each line of the net log
Cheers,
Ovid
New address of my CGI Course.
In reply to Re: Help with recurring "uninitialized variable" problem.
by Ovid
in thread Help with recurring "uninitialized variable" problem.
by C_T
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |