XP is just a number | |
PerlMonks |
Re^2: How do you run a subroutine from inside HTML code?by Anonymous Monk |
on Mar 15, 2006 at 20:54 UTC ( [id://536936]=note: print w/replies, xml ) | Need Help?? |
I'd first think to try the following, but that may be perl6 interpolation talking:
Generally, and definitely perl5, "@{[foo()]}" calls &foo as list context and interpolates the return value as with an array and "${\foo()]}" similarly, with scalar context and as a scalar. For your particular example, however, I'd just use printf.
There is no need to escape quoting delimeters in Perl.
In Section
Seekers of Perl Wisdom
|
|