Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
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.

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 cooling their heels in the Monastery: (10)
As of 2016-08-31 15:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    The best thing I ever won in a lottery was:















    Results (432 votes). Check out past polls.