Subject: | format_bytes documentation incorrect |
Documentation for format_bytes says:
The second parameter can be either a reference to a hash that sets
options, or a number.
...
format_bytes(1048576, { units => 'K'}) yields '1,024K'
instead of '1M'
In fact, format_bytes as implemented expects a hash, not a hash
reference, and the key is 'unit', not 'units'.