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
    You may notice that the 1st suggestion utilised a snippet from the OP (tho' I take your point that it was remiss of me to insert the strictures) - my 2nd suggestion deliberately didn't repeat the errror.

    A user level that continues to overstate my experience :-))
      What I noticed is that you provided a solution that made things worse for the OP. I wasn't contradicting you; I was simply completing the work you started.
        Ahh, thank you ikegami - I obviously badly mis-read your intentions.

        Apologies.

        .oO(I'm not sure if this should've been a node or a msg).

        A user level that continues to overstate my experience :-))