Your skill will accomplish what the force of many cannot |
|
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
I always forget about printf in Perl. In Python (3+), there's no interpolation, so I'd have to do print("Hello {}, how are you {}".format(name, today)). No matter what you want to print with variables, you have to do it this way (at least for a normal print statement), including all the parens and cruft. I've taken perl interpolation for granted me thinks ;) Update: While I'm complaining about Python not being Perl, I'll mention I had a colleague (Python coder) state "I bet Perl doesn't have list comprehensions"... I said: say for @array, where they said: [x for x in array], but that only worked for them in REPL... to do it with print in a script, one has to do extra trickery. I'm only saying this because I've been privy to some of your Ruby rants lately. I just love Perl. In reply to Re^2: How to include a string immediately after a variable in a double-quoted string
by stevieb
|
|