[VPM] regular-expressions and variables

Jer A jeremygwa at hotmail.com
Sat Nov 11 08:38:53 PST 2006


hello all perl gurus,

I have another problem - a regular expression problem

how do i use scalar variables in substitution and complex matching?

eg I want the following to work.

$string =~ s/^$variable//;

$string =~ m/^([^$variable]*)/;


thanks in advance for your help.

-Jeremy A.

_________________________________________________________________
Say hello to the next generation of Search. Live Search – try it now. 
http://www.live.com/?mkt=en-ca



More information about the Victoria-pm mailing list