Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re^4: Perl oddities (s/// doesn't DWIM in map)

by Roy Johnson (Monsignor)
on Mar 01, 2005 at 18:50 UTC ( #435568=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    (my $modified = $_) =~ s/$pattern/$change_to/g;
    
  2. or download this
    s/$pattern/$change_to/g;
    my $modified = $_;
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (5)
As of 2020-01-25 01:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?