http://www.perlmonks.org?node_id=801923


in reply to Re^4: Perl VS Python
in thread Perl VS Python

No, not like perl, it relies on % and dictionaries (hash). Ex
print "Hello %(name)s! Today is %(day)s!" % ( 'name' : 1, 'day' : 2 );
In perl that might be you might write
use Text::Sprintf::Named; my $formatter = Text::Sprintf::Named->new( {fmt => "Hello %(name)s! Today is %(day)s!"} ); $formatter->format({args => {'name' => "John", 'day' => "Thursday"}});