SPUG: Request for feedback on file-size humanizing routine

Jeremy A. Mates jmates at mbt.washington.edu
Thu Sep 7 11:23:38 CDT 2000


On Thu, 7 Sep 2000, Jeremy Devenport wrote:
> Just out of curiosity has anyone looked at Number::Format? It seems to do
> the same thing.

Number::Format's format_bytes() only supports positive K and M.

Mine supports K, M, G, P, E, Z, Y of both positive and negative values,
allows fudging of numbers up (1021 K -> 1 M), and-- excepting precision
length (working on adding)-- finer grained control over decimals.

Though admittedly I hadn't thought to look in the Number's section for
appropriate modules.  I'll be contacting the author of Number::Format to
see whether my version can be included somehow...

-- 
Jeremy Mates                           (206) 221-4714   Fax: 685-7301
Systems Administrator                  K353-B, Health Sciences Center
http://www.mbt.washington.edu/         Box 357730
University of Washington               Seattle, WA, 98195



 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
     POST TO: spug-list at pm.org       PROBLEMS: owner-spug-list at pm.org
      Subscriptions; Email to majordomo at pm.org:  ACTION  LIST  EMAIL
  Replace ACTION by subscribe or unsubscribe, EMAIL by your Email-address
 For daily traffic, use spug-list for LIST ;  for weekly, spug-list-digest
  Seattle Perl Users Group (SPUG) Home Page: http://www.halcyon.com/spug/





More information about the spug-list mailing list