[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl] A simple question..



At 22.26 +0100 1999-02-09, Thierry Leveque wrote:
>I wonder how could I make this work in Replacement patern:
>
>$contenu[$i] =~ s/%%admin_mailbox/$cgi->param('admin_mailbox')/;

Easy. Add an 'e' to your command:

$contenu[$i] =~ s/%%admin_mailbox/$cgi->param('admin_mailbox')/e;

This will make Perl treat the replacement string as an expression, and call
the param method of the CGI object, as you want.

/Cajo.


___Carl_Johan_Berglund_________________________
   Adverb Information
   carl.johan.berglund@adverb.se
   http://www.adverb.se/



***** Want to unsubscribe from this list?
***** Send mail with body "unsubscribe" to mac-perl-request@iis.ee.ethz.ch