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.
In reply to Re^3: What makes good Perl code?
by Anonymous Monk
in thread What makes good Perl code?
by slinky773
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |