Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: Perl Idioms Explained - ${\$obj->method} and @{[sort @list]}

by Juerd (Abbot)
on Aug 21, 2003 at 16:31 UTC ( [id://285513]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    "method result   - ${ \$obj->method }\n";
    
    "method result   - " . $obj->method . "\n";
    
  2. or download this
    "foo @{[ some_list() ]}.";
    
    ...
    "foo ${\ join ' ', some_list() }";
    
    "foo " . join ' ', some_list();
    
  3. or download this
    printf "method result  - %s\n", $obj->method;
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (5)
As of 2024-03-19 06:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found