It could be more concise, and you don't need the alternation:
Interpreted as: zero or one zeroes, a period, followed by digits.my ($num) = $_num =~ /^0?\.\d+$/;
In reply to Re: Match number >= 0 and <1
by pbeckingham
in thread Match number >= 0 and <1
by lupey
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |