[VPM] regular expression and execution of routine

Jeremy Aiyadurai jeremygwa at hotmail.com
Sat Feb 25 19:13:08 PST 2006


hello all perl guru's

in a regular expression how do I execute subroutines?

eg.
-------------------
$_ =~ s/replaceme (.*)/hello($1);/ig;


sub hello {
my ($test) = @_;
...
}

-----------------
I am using an ActiveState 5.8 something, perl distro.
thanks in advance for all help,

-Jeremy A.




More information about the Victoria-pm mailing list