SPUG: multi-line substition, all at once.
Jacinta Richardson
jarich at perltraining.com.au
Mon Jun 29 17:53:59 PDT 2009
Joshua ben Jore wrote:
> sub code_tag {
> my ( $code ) = @_;
> "[code]$code\[/$code]";
> }
I presume the third "$code" there is a typo and should have been just "code".
Otherwise, looks good.
J
--
("`-''-/").___..--''"`-._ | Jacinta Richardson |
`6_ 6 ) `-. ( ).`-.__.`) | Perl Training Australia |
(_Y_.)' ._ ) `._ `. ``-..-' | +61 3 9354 6001 |
_..`--'_..-_/ /--'_.' ,' | contact at perltraining.com.au |
(il),-'' (li),' ((!.-' | www.perltraining.com.au |
More information about the spug-list
mailing list