Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re^2: Module for file size arithmetic

by mirod (Canon)
on Mar 12, 2009 at 10:42 UTC ( [id://750118]=note: print w/replies, xml ) Need Help??


in reply to Re: Module for file size arithmetic
in thread Module for file size arithmetic

My first test gets me a segmentation fault, so I'm not sure...

perl -M'Data::Dimensions qw(:extended &units)' -E'say add( "1.2G", "50 +0M"); \ sub add \ { my $sum= units( { byte => 0 }); \ foreach (@_) { $sum += $_ } \ return $sum; \ }\ '

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://750118]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (7)
As of 2024-04-18 09:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found