Guildenstern has asked for the wisdom of the Perl Monks concerning the following question:
The line indicated by the warning is the push(...) statement. I've tried giving explcit values to $port, $name, and $rem before the split to no luck. I also tried giving values to @{$portHash->{$port}}, and $portHash->{$port} and I get the same warning.sub readPorts(\%) { die "Incorrect number of args to readPorts\n" unless @_ == 1; my $portHash = shift; while (<DATA>) { my ($port, $sname, $rem) = split("\t"); push (@{$portHash->{$port}},$sname . "\t" . $rem); } }
|
|---|