Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re^4: Usage of 'my' in 'eval'

by Anonymous Monk
on Jan 06, 2006 at 15:54 UTC ( [id://521509]=note: print w/replies, xml ) Need Help??


in reply to Re^3: Usage of 'my' in 'eval'
in thread Usage of 'my' in 'eval'

It's that mentioning them twice that bother's me, since it's (a bit) error prone - due to copy and paste, a longer (or shorter) my (var1, var2, ...) list will not neccessarily be detected at once. Having had the possibility to localize them via
eval
, each and only each valid named parameter would have been declared and initialized correctly. Later mispellings of these variable names would be detected via use strict.

Besides, now I ALSO got the feeling I should have looked at Params::Validate!
;-)

I find it hard to get an decent overview over the CPAN modules, thus gave up at some point and probably reinvent the weel again and again...

Thank you for your support!

Replies are listed 'Best First'.
Re^5: Usage of 'my' in 'eval'
by xdg (Monsignor) on Jan 10, 2006 at 14:44 UTC

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (2)
As of 2024-04-26 01:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found