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

Re: Is this normal

by roboticus (Chancellor)
on Jan 06, 2012 at 14:55 UTC ( #946609=note: print w/ replies, xml ) Need Help??


in reply to Is this normal

himik:

I'm guessing that it's because you're calling the m operator in list context rather than scalar context. Perhaps it would work if you try:

TestIt($a1, $a2, scalar($a3=~m/2/), $a4);

...roboticus

When your only tool is a hammer, all problems look like your thumb.


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://946609]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (5)
As of 2015-07-05 18:15 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 (67 votes), past polls