in reply to Re: Want to do One line Perl Command
in thread Want to do One line Perl Command

Oh sorry, I forgot to indicated that there could be multiple Errors statements

Replies are listed 'Best First'.
Re^3: Want to do One line Perl Command
by Sidhekin (Priest) on Jul 02, 2004 at 21:29 UTC

    Oh sorry, I forgot to indicated that there could be multiple Errors statements

    Oh well. Slight modification:

    perl -nle '$_ eq "Errors" ? delete($f{$prev}) : $f{$prev=$_}++; END {u +nlink keys %f}'

    print "Just another Perl ${\(trickster and hacker)},"
    The Sidhekin proves Sidhe did it!