in reply to Re: Re: Re: Re: sort array by value in it
in thread sort array by value in it
Second, you didn't understand the code I provided.
@lines = map { /(\/\w+\/\w+)\s+\w+\s+\d+\s+\d+\s+(\d+)\s+(\d+)%/; if ($1) { { volume => $1, available => $2, free => 100 - $3, } } else { () } } split(/\n/, $space{$host});
I hope you're testing this in some test environment ...
------
We are the carpenters and bricklayers of the Information Age.
Then there are Damian modules.... *sigh* ... that's not about being less-lazy -- that's about being on some really good drugs -- you know, there is no spoon. - flyingmoose
I shouldn't have to say this, but any code, unless otherwise stated, is untested
|
|---|