in reply to Re: Detecting a Null or Enter key
in thread Detecting a Null or Enter key
local ($bak_id)=shift; local ($acc_bal)=shift;
won't pass strict. But that's good because it's inappropriate to use local here. The above should be replaced with
my ($bak_id)=shift; my ($acc_bal)=shift;
In both cases, the parens are useless.
my $bak_id = shift; my $acc_bal = shift;
Or you could combine them
my ($bak_id, $acc_bal) = @ARGV;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Detecting a Null or Enter key
by Bloodnok (Vicar) on Jan 11, 2009 at 18:20 UTC | |
by ikegami (Patriarch) on Jan 11, 2009 at 18:30 UTC | |
by Bloodnok (Vicar) on Jan 11, 2009 at 20:51 UTC |