Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Regex re_eval - requires explicit package name

by trizen (Hermit)
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 perusing the Monastery: (9)
As of 2015-07-29 05:41 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 (260 votes), past polls