... Perl resolves 0.0 to 0
As davido points out below, Perl stringizes 0.0 to '0':
c:\@Work\Perl\monks>perl -wMstrict -le "my $f = 0.0; my $fs = qq{$f}; print qq{stringization of 0.0: '$fs'}; ;; $f = 0.5; $fs = qq{$f}; print qq{stringization of 0.5: '$fs'}; " stringization of 0.0: '0' stringization of 0.5: '0.5'
Give a man a fish: <%-{-{-{-<
In reply to Re^3: Float regex matching
by AnomalousMonk
in thread Float regex matching
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |