Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: Chaining string ops

by asarih (Hermit)
on Aug 28, 2003 at 18:14 UTC ( #287478=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $str = "the boy walked the dog";
    $str =~ s/walked/fed/ =~ s/boy/girl/ =~ s/dog/Audrey II/; # error
    
  2. or download this
    $str =~ 1
    
  3. or download this
    if ($str =~ s/boy/girl/) {
        # do this
    }
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (5)
As of 2022-12-06 14:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?