in reply to substr on $_
s/\d+(\d\d)\./$1/; # no need for the (\d+) at the end # being replaced by $2 (itself!)
_____________________________________________________
Jeff[japhy]Pinyan:
Perl,
regex,
and perl
hacker.
s++=END;++y(;-P)}y js++=;shajsj<++y(p-q)}?print:??;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: substr on $_
by Anonymous Monk on Sep 28, 2001 at 02:20 UTC |