in reply to Re: awk...ward
in thread awk...ward

Except in this case. That's some pretty nasty perl for what it's trying to do. I've previously contemplated writing a module to somehow allow awk column sementics in perl... never quite got a round tuit though.

--
I'm not belgian but I play one on TV. On dit que je parle comme un belge aussi.

Replies are listed 'Best First'.
Re^3: awk...ward
by jmcnamara (Monsignor) on Mar 01, 2005 at 13:54 UTC

    Inline::Awk gives you all the power (?!) of awk from within a Perl program:
    perl -le 'use Inline Awk=>q({print $1}); awk()' file

    I agree with you that the output of a2p isn't pretty and it is probably not the best way for an awk programmer to learn Perl.

    --
    John.