in reply to Re: Re: converting "30k" string to integer
in thread converting "30k" string to integer
You might want to use ([kKmMgG][bB]?) instead of
([kKmMgG]b?B?). Your version will recognize "3gbB" as well as "3gB", although the first version is not a key in the hash. Its undef value will be converted to 0, so that you will have that string replaced with "0".