Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

(tye)Re: How to make only two of three substitutions?

by tye (Sage)
on Oct 15, 2002 at 13:23 UTC ( #205367=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
        $str =~ s#/##   for  1,2;
  2. or download this
        s#(/\s*){2}\z##
  3. or download this
        perl -i.old -pe '$sawSlash++ && s#/## if m#/#'

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (7)
As of 2019-10-18 08:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?