in reply to Split & Splice Confusion

Have you considered
$currNumber =~ /(\D*)(\d*)/
? This captures the prefix in $1 and the digits in $2.

-HZ

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!