Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: A pair of "mathematical" attributes for arrays?

by moritz (Cardinal)
on Sep 10, 2007 at 11:04 UTC ( [id://638028]=note: print w/replies, xml ) Need Help??


in reply to A pair of "mathematical" attributes for arrays?

I quite like these suggestions, especially the first one with :zero.

I think that generally a better control over warnings is desirable.

For example if I test if a string has some content I check for defined $str && length $str. It feels clumsy, but a simple $str returns false if the string is "0", and a length $str warns if $str is undef.

In these cases I would want to disable some warnings specifically for a few builtins.

no warnings uninitialized => ['length', 'eq']; would be the p5ish way to express this.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (7)
As of 2024-04-25 15:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found