in reply to making a shorter code!

No. You improved it with chomp. <> for <STDIN> is worse since it lets in data from files named on the command line. Most of the verbiage is from words you want to print.

After Compline,
Zaxo

Replies are listed 'Best First'.
Re: Re: making a shorter code!
by rir (Vicar) on Sep 14, 2002 at 22:41 UTC
    <> for <STDIN> is worse since it lets in data from files named on the command line.

    You can not protect <STDIN> from redirection on the command line either.