in reply to Re: Will a substitution in an if/else loop default to $_?
in thread Will a substitution in an if/else control structure default to $_?

Wouldn't $cellStr be an array If I am assigning three different columns: 0, 1, and 2?

I'm so adjective, I verb nouns!

chomp; # nom nom nom

  • Comment on Re^2: Will a substitution in an if/else loop default to $_?

Replies are listed 'Best First'.
Re^3: Will a substitution in an if/else loop default to $_?
by GrandFather (Saint) on Aug 21, 2008 at 03:42 UTC

    If it is an array (reference) then the match will stringify the reference and you will end up trying to match against something of the form 'ARRAY(0x1f7c3e4)'. Probably not what you want. Maybe you need to show us the bigger picture because right now what you seem to be doing is completely bogus.


    Perl reduces RSI - it saves typing