Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: python like named placeholders sprintf ?

by ikegami (Patriarch)
on Jan 14, 2009 at 23:47 UTC ( [id://736417]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    >perl -le"print sprintf '%2$s %1$s', qw( a b )"
    b a
    
  2. or download this
    $hello = "Hello $name";
    
  3. or download this
    use String::Interpolate qw( );
    
    ...
    }
    
    my $hello = format('Hello $name', { name => 'World' });
    

Log In?
Username:
Password:

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

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

    No recent polls found