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

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

by Juerd (Abbot)
on Aug 21, 2003 at 16:31 UTC ( #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
Node Status?
node history
Node Type: note [id://285513]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (3)
As of 2014-07-13 04:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (245 votes), past polls