Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: Simple Q. for You

by Your Mother (Archbishop)
on Mar 16, 2018 at 03:04 UTC ( [id://1211010]=note: print w/replies, xml ) Need Help??


in reply to Simple Q. for You

And if you do (and you really should) play around with it, see how concise and idiomatic Perl can be. This does the same (provided it's the final statement in the sub and you might need to turn off uninitialized warnings depending on how it's called). Using syphilis's example as a base–

sub test_it { $d->{foo} =~ /X/i; }

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (5)
As of 2024-03-28 08:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found