in reply to
Split & Splice Confusion
Have you considered
$currNumber =~ /(\D*)(\d*)/
[download]
? This captures the prefix in $1 and the digits in $2.
-
HZ
Comment on
Re: Split & Splice Confusion
Download
Code
Replies are listed 'Best First'.
Re: Re: Split & Splice Confusion
by
TrinityInfinity
(Scribe)
on Aug 17, 2001 at 23:38 UTC
Yes! That works! And as a bonus, it seems to keep the leading zeros as well! I might need those in future calculations. It works great, with fewer lines!
You've made my day! Thanks again!
[reply]
In Section
Seekers of Perl Wisdom