Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

(tye)Re: 99 bottles, 2 lines

by tye (Sage)
on Nov 28, 2000 at 22:03 UTC ( #43725=note: print w/replies, xml ) Need Help??


in reply to Re: 99 bottles, 2 lines
in thread 99 bottles, 2 lines

s/\d{2}/$1--/g

Can't you just use:

s/\d{2}/$1-1/ge
except that this will fail when you get down to 1 digit.

        - tye (but my friends call me "Tye")

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://43725]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (9)
As of 2018-06-18 10:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?



    Results (109 votes). Check out past polls.

    Notices?