Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: Simple Q. for You

by Your Mother (Archbishop)
on Mar 16, 2018 at 03:04 UTC ( #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
Node Status?
node history
Node Type: note [id://1211010]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (4)
As of 2021-01-25 00:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?