Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked

Re: Re: Applying a RegEx in a variable

by ChOas (Curate)
on Aug 10, 2001 at 13:59 UTC ( #103820=note: print w/ replies, xml ) Need Help??

in reply to Re: Applying a RegEx in a variable
in thread Applying a RegEx in a variable ;))

I have no influence over the regex, it could come
from a file, or from user input... it`s really a

BUT!..... I can do

my $Tmp="/a/i"; my $RegEx=eval "qr$Tmp";
For wich I can build a working construct... hmmmm...
I`m going to explore this a bit more....
So actually it DID help!! .....Thanks! ;)))

... A little bit later ...

Hmmmmm.... maybe it didn`t help... I`ll try some more ;))

... A little bit more later ...

Okay.. I got it to work!! cheer!!... I`ll post the code where
it`s going to be in hopefully next week.... thanks!!


print "profeth still\n" if /bird|devil/;

Comment on Re: Re: Applying a RegEx in a variable
Download Code

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://103820]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (5)
As of 2015-11-28 07:14 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (739 votes), past polls