Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Regex re_eval - requires explicit package name

by trizen (Friar)
on Jan 20, 2013 at 10:36 UTC ( #1014279=perlquestion: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl
    
    use 5.010;
    ...
    if($x =~ /func$bpairs{'{'}/){       # here is the problem
        print "Second matched: $&\n";
    }
    
  2. or download this
    After eval!
    After eval!
    First matched: {{xx|"}"} @{d}end}
    Global symbol "$d" requires explicit package name at (re_eval 9) line 
    +1.
    Compilation failed in regexp at test.pl line 43.
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://1014279]
Approved by Corion
Front-paged by Lotus1
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (10)
As of 2014-08-23 15:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (174 votes), past polls