in reply to [perlrun/perlre] one-liner to match "readable" lines

am I missing something?

cat gcc-295.pkg | perl -ne 'print if /^[A-Za-z]/'
hmm?
He who asks will be a fool for five minutes, but he who doesn't ask will remain a fool for life.

Chady | http://chady.net/

Replies are listed 'Best First'.
Re: Re: [perlrun/perlre] one-liner to match "readable" lines
by kvale (Monsignor) on Oct 07, 2002 at 17:32 UTC
    To save a few keystrokes, eliminate cat:
    perl -ne 'print if /^[A-Za-z]/' gcc-295.pkg
    -Mark