Hello, Experts! I am into perl since a couple of weeks, so please excuse any ingenuity ;)
To the problem: I have a regex in a variable, and would like to match it. I clearly understand that I can do this: my $rexp="match"; $text=~m/$rexp/g; However what i want to do is subtly different: i'd like to do this: my $rexp="m/match/g"; $text=~$rexp; or even my $rexp="s/match/subst/g"; $text=~$rexp; Actually the latter is the reason why I'd like to do this: I'd like the user to be able to enter a perl regex and have it run on some text I have. Any clue? Thanks a lot cheers paolino -- Paolo Gianrossi Softeco Sismat S.p.A. - R&D Division via De Marini 1, 16149 Genova Tel: +39 010 6026 332 - Fax: +39 010 6026 350 E-Mail: [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/