Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re^5: Smart match in p5

by Anonymous Monk
on Mar 14, 2005 at 17:40 UTC ( [id://439373]=note: print w/replies, xml ) Need Help??


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

This node falls below the community's threshold of quality. You may see it by logging in.

Replies are listed 'Best First'.
Re^6: Smart match in p5
by xmath (Hermit) on Mar 14, 2005 at 18:09 UTC
    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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://439373]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (7)
As of 2024-04-19 11:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found