Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: Substitution problem.

by Fastolfe (Vicar)
on Nov 25, 2000 at 05:45 UTC ( [id://43282]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    s/quotemeta('[')/quotemeta('x')/g;
    
  2. or download this
    s/\Q$array1{$count}\E/$array2{$count}/g;
    
  3. or download this
    $from = join('', @array1);  # or set up $from and $to
    $to   = join('', @array2);  # to begin with
    
    tr/$from/$to/;              # e.g. "abc" =~ tr/ab/xy/ ==> "xyc"
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (7)
As of 2024-04-16 08:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found