P is for Practical | |
PerlMonks |
Re: String interpolationby gellyfish (Monsignor) |
on Dec 09, 2004 at 13:19 UTC ( [id://413525]=note: print w/replies, xml ) | Need Help?? |
An alternative to the other suggestions is to use (s)printf: You will need to be careful in sanitizing the contents of $str if all or part of it is being taken from user (or otherwise untrusted) input . /J\
In Section
Seekers of Perl Wisdom
|
|