Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: recursive /eg fails

by Anonymous Monk
on Mar 27, 2002 at 03:45 UTC ( #154576=note: print w/ replies, xml ) Need Help??


in reply to recursive /eg fails

yeah, I can't read that sorry.

What does

$re = ${{ "B(1)+C(2)" => '1|2', }}{$_}||quotemeta;
do? (I know what the code says, but as to why anyone'd write this is beyond me, it's not useful). what I would do is compile $re so it is a regex, using qr (see perlop).

Also, it will never print func MAIN ,
first it will print MAIN: 'B(1)+C(2)'=~/....


Comment on Re: recursive /eg fails
Download Code
Replies are listed 'Best First'.
Re: Re: recursive /eg fails
by I0 (Priest) on Mar 27, 2002 at 04:01 UTC
    Adding $re = qr/$re/; has the same problem.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (10)
As of 2015-07-30 17:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (273 votes), past polls