Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

(tye)Re: 99 bottles, 2 lines

by tye (Sage)
on Nov 28, 2000 at 22:03 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://43725]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (2)
As of 2024-04-19 22:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found