A quick look through CPAN and the Cookbook turned up nothing, but before I dive into this, can anyone recommend a module or a piece of code?
I have to convert "30k" to 30000 and "30kb" to (30 * 1024). "k", "g", "kb" and "gb" are all I need for now, case insensitive.
There's got to be a terrifying, elegant RE to do this...
In reply to converting "30k" string to integer by dwhite20899
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |