Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: Is this normal

by toolic (Bishop)
on Jan 06, 2012 at 15:24 UTC ( #946613=note: print w/ replies, xml ) Need Help??


in reply to Is this normal

If you want the match to return 1 if successful, and 0 if it fails, you can use the ternary operator:

&TestIt($a1,$a2, ($a3 =~ m/2/) ? 1 : 0 ,$a4);


Comment on Re: Is this normal
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (11)
As of 2015-07-30 19:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (273 votes), past polls