This solution is far from perfect, but it *works* (as long as the number stringifies normally)
Sometimes you can get away with doing stringy things on numbers. It can be a time saver if you're in a hurry and out of inspiration.my ($y, $z) = split /\./, $x;
Juerd # { site => 'juerd.nl', plp_site => 'plp.juerd.nl', do_not_use => 'spamtrap' }
In reply to Re: splitting a decimal number..
by Juerd
in thread splitting a decimal number..
by renz
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |