I think using the /e modifier at the end will work. (I can't test it
here)

$match =~ s/([match]+)/Function($1)/ge

or something like that.


-----Original Message-----
From: The Ghost [mailto:[EMAIL PROTECTED] 
Sent: Friday, March 03, 2006 11:20 AM
To: Perl Beginners
Subject: regex subroutine

how do I:

$match=~s/([match]+)/Function($1)/g;

?

Thanks!

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>




--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to