in reply to Re^2: Argument "" Isn't numeric in numeric eq (==)
in thread Argument "" Isn't numeric in numeric eq (==)

I do not understand the question. I just populated the @f array as in the OP. I just used
while (<DATA>) { my @f = (undef, split /,/);

as the @f in the OP is not zero based, but one based. There is no need to cast between strings and numbers in Perl.

لսႽ† ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ

Replies are listed 'Best First'.
Re^4: Argument "" Isn't numeric in numeric eq (==)
by karlgoethebier (Abbot) on Feb 09, 2014 at 19:36 UTC
    "There is no need to cast..."

    Yes s(h)ure. I was a bit confused about this Isn't numeric in numeric eq (==). Sorry, i couldn't explain it better :-(

    Best regards, Karl

    «The Crux of the Biscuit is the Apostrophe»

      The empty strings were the reason of the warning. They are handled by the || 0, because emtpy string is false.
      لսႽ† ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ