Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
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 surveying the Monastery: (13)
As of 2014-10-01 17:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    What is your favourite meta-syntactic variable name?














    Results (31 votes), past polls