On 3/4/09 Wed  Mar 4, 2009  10:26 AM, "Lauri Nikkinen"
<lauri.nikki...@iki.fi> scribbled:

> Ok, thanks, I wrote this based on your suggestions, and it seems to do what
> I want. One further question, if you don't mind, how to format this so that
> it prints sizes in megabytes, not in bits?

How about dividing the result by 1_000_000 (-s returns size in bytes, not
bits). Or use 1_048_576 if you think megabytes should be a binary number.

-- 
Jim Gibson



-- 
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to