Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: Splitting without losing

by DaveH (Monk)
on Feb 01, 2003 at 10:54 UTC ( [id://231831]=note: print w/replies, xml ) Need Help??


in reply to Splitting without losing

Hi.

It looks like what you are trying to do is parse 'df -k' in some way. Perhaps you should instead look into using a module like Filesys::Df. This uses the statvfs system call, therefore should be more portable should your code be destined to run on any other systems. You never know, it may also end up being faster.

Trying to parse df consistently cross-platform is like trying to tie down smoke. ;-) Each OS seems to print out the information in a slightly different way.

Cheers,

-- Dave :-)


$q=[split+qr,,,q,~swmi,.$,],+s.$.Em~w^,,.,s,.,$&&$$q[pos],eg,print

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (4)
As of 2024-04-16 04:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found