SPUG: Request for feedback on file-size humanizing routine

Bill Campbell bill at celestial.com
Wed Sep 6 17:00:17 CDT 2000


On Wed, Sep 06, 2000 at 02:31:38PM -0700, Jeremy A. Mates wrote:
>Hello-
>
>I threw together a routine that takes random numbers (presumed bytes),
>and converts them to sizes that a human can read, available at:
>
>http://www.sial.org/code/perl/scripts/human.pl
>
I'm attaching one I've been using for several years that adds commas
to integer and decimal numbers for pretty printing.

Bill
--
INTERNET:  bill at Celestial.COM   Bill Campbell; Celestial Systems, Inc.
UUCP:              camco!bill   PO Box 820; 6641 E. Mercer Way
FAX:           (206) 232-9186   Mercer Island, WA 98040-0820; (206) 236-1676

"The strongest reason for the people to retain the right to keep and
 bear arms is, as a last resort, to protect themselves against tyranny
 in government." --1 Thomas Jefferson Papers, 334 (C.J.Boyd, Ed.,1950)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: d2s.pl
Type: application/x-perl
Size: 776 bytes
Desc: not available
Url : http://mail.pm.org/archives/spug-list/attachments/20000906/ed208d3f/d2s.bin


More information about the spug-list mailing list