$num =~ s/\.(\d).*/.$1/; # perform the rounding (as string)
Oi Vay! Why (oh why) do you have that trailing dot-star in your regex? I see this with both neophyte and experienced RE users and I have yet figure out what misconception leads to this practice. Any ideas?
In reply to Re: Re: Dividing and format with regular expression the perl way
by Anonymous Monk
in thread Dividing and format
by hotshot
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |