Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: how to force scalar context (without scalar())?

by iblech (Friar)
on Sep 19, 2004 at 15:37 UTC ( [id://392201]=note: print w/replies, xml ) Need Help??


in reply to how to force scalar context (without scalar())?

The following won't help you, but I had to say it ;)
# Perl 6 $obj.method( foo => +some_number_returning_func(), bar => ~some_string_returning_func(), );
Unary + (~) forces Number (String) context to its argument.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (6)
As of 2024-04-18 09:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found