Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re^6: Smart match in p5

by xmath (Hermit)
on Mar 14, 2005 at 18:09 UTC ( #439388=note: print w/replies, xml ) Need Help??


in reply to Re^5: Smart match in p5
in thread Smart match in p5

If you had bothered to read the original meditation, you'd have seen the remark:
Note that prefix '~~' still works like it did previously. Therefore if foo is a sub, then foo~~bar will be parsed as foo(~~bar) unless foo has prototype ().
To get a smartmatch on the result of foo, you'd write foo() ~~ $var

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://439388]
help
Chatterbox?
[afoken]: tail is way older than less
erix likes multitail

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (4)
As of 2017-01-17 20:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you watch meteor showers?




    Results (158 votes). Check out past polls.