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