|
|
| Pathologically Eclectic Rubbish Lister | |
| PerlMonks |
Reinventing Proc::ProcessTable? (was Re^5: Equal strings don't match!)by AltBlue (Chaplain) |
| on Jul 31, 2008 at 02:13 UTC ( [id://701315]=note: print w/replies, xml ) | Need Help?? |
|
Looks like you're trying to reinvent Proc::ProcessTable. I'd recommend you to use that, at least this way you'll avoid most of the pitfalls your code presents (it may crash in a million ways as you don't handle the *many* errors that may occur when processing files from such a volatile file-system as /proc).
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||