in reply to Re^2: What makes good Perl code?
in thread What makes good Perl code?

Gah, I'm an idiot...

my ($current) = $input =~ /^\s*[\d.]+\s+/ or do {

should be

my ($current) = $input =~ /^\s*([\d.]+)\s+/ or do {

or there won't be a capture of the number.