Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: python like named placeholders sprintf ?

by jdporter (Paladin)
on Jan 15, 2009 at 01:45 UTC ( [id://736433]=note: print w/replies, xml ) Need Help??


in reply to python like named placeholders sprintf ?

Sure it does. It's just that the syntax is a little more verbose than in Python.

print "My first name is $_->{first} and my last name is $_->{last}\n" for { first => 'jd', last => 'porter' };

;-)

Between the mind which plans and the hands which build, there must be a mediator... and this mediator must be the heart.

Log In?
Username:
Password:

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

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

    No recent polls found