Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re^2: How to disable:Odd number of elements in hash assignment warning?

by BrowserUk (Patriarch)
on Sep 23, 2016 at 19:15 UTC ( [id://1172493]=note: print w/replies, xml ) Need Help??


in reply to Re: How to disable:Odd number of elements in hash assignment warning?
in thread How to disable:Odd number of elements in hash assignment warning?

In general I don't see the point in doing extra work to avoid a warning I can simply disable. Especially when, as in this case, the affected code is processing 10s or 100s of millions of records.

I could, use tr[] or m[] to count the number of delimiters and then the 3rd arg to split to avoid the odd number of returned values, but since the split is already the most costly (cpu) operation, doing the same work twice to avoid a warning I can disable, would be a waste of cycles.


With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority". I knew I was on the right track :)
In the absence of evidence, opinion is indistinguishable from prejudice.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1172493]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (3)
As of 2024-03-29 02:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found