Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
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?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (5)
As of 2023-12-04 10:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What's your preferred 'use VERSION' for new CPAN modules in 2023?











    Results (25 votes). Check out past polls.

    Notices?