Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: How to make only two of three substitutions?

by bigj (Monk)
on Oct 15, 2002 at 15:18 UTC ( #205397=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    1 while $sql =~ s%(/.*)/%$1%gs;
    
  2. or download this
    use Regexp::Keep;   # I believe, it will be unnecessary on Perl 5.10
    1 while $sql =~ s%/.*\K/%%gs;
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (3)
As of 2019-10-14 00:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?