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

Re: Regex is not working

by moritz (Cardinal)
on Oct 03, 2013 at 05:21 UTC ( #1056720=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    s/\Q$value\E/$replace/i;
    
  2. or download this
    my @array_1 = ("\$Id_run_query=1", "\$name_run_query=xyz", "db_query_r
    +un_query=select * from meter where metetid=\$Id and metername=\$name"
    +);
    my $query;
    ...
    $query =~ s/($replace_re)/$replace{$1}/ig;
    
    print "===>$query\n";
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (7)
As of 2016-09-28 22:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Extraterrestrials haven't visited the Earth yet because:







    Results (541 votes). Check out past polls.