in reply to Irregular Expressions

Instead of using a single scalar, why not call quota in list context?
@lines = `quota -v`; my $header = shift @lines;
As an aside, regular expressions might not be best for something that has fairly predictable formatting. Then again, It's my weakest area of Perl knowledge by far so take that with a grain of salt. Faced with the same problem, I came up with Parsing program output snippets.

-Lee

"To be civilized is to deny one's nature."

Replies are listed 'Best First'.
Re: Re: Irregular Expressions
by JoeJaz (Monk) on Jun 17, 2003 at 16:39 UTC
    Thanks a bunch! That an impressive parsing program that you have included. I will take a close look at it to see exactly what you have done. Thanks again.