Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- Increment Numbers
- Chris Ellison
January 1, 2006, 11:32 pm
rate this thread
Re: Increment Numbers
That's OK because you don't want to do an operation within
a regular expression, you want to do an operation within
the REPLACEMENT part of the s/// operator (which is (by default)
a string, not a regex).
Read the entry for s/// in perlop.pod, until you get to this part:
e Evaluate the right side as an expression.
Tad McClellan SGML consulting
firstname.lastname@example.org Perl programming
Fort Worth, Texas
- » FAQ 4.39 What is the difference between a list and an array?
- — Previous thread in » PERL Discussions