Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?

Re: Argument "" Isn't numeric in numeric eq (==)

by RMGir (Prior)
on Feb 09, 2014 at 15:49 UTC ( #1074132=note: print w/replies, xml ) Need Help??

in reply to Argument "" Isn't numeric in numeric eq (==)

You could just disable warnings, but why not say what you intend?

If you want blank entries to be 0, just make them so:

# Consider all blank entries to be 0. foreach (@f) { $_ = 0 unless length $_; }
After that, all your ""'s become zeros, and == will behave just fine.


Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1074132]
[LanX]: YM: talking about breaches ... did you read about Cambridge Analytica harvesting 50e6 FB profiles for political propaganda?
LanX ... oh ... Brexit delayed ... again ... oh wonder ...
[Your Mother]: Heh. I keeping seeing related headlines but my narcissism is a perihelion right now so I'm busy. :P
[LanX]: https://www. news/series/ cambridge- analytica-files
[Your Mother]: s/a /at /;
[LanX]: just watch the video ...
[Your Mother]: Roger, will co.

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (9)
As of 2018-03-19 13:21 GMT
Find Nodes?
    Voting Booth?
    When I think of a mole I think of:

    Results (240 votes). Check out past polls.