kborz has asked for the wisdom of the Perl Monks concerning the following question:

This node falls below the community's threshold of quality. You may see it by logging in.

Replies are listed 'Best First'.
Re: manipulating <SDTIN>
by ikegami (Patriarch) on Jun 06, 2006 at 19:11 UTC

    Yes, use chomp($i);.

    In practice:

    while (defined(my $i = <STDIN>)) { chomp($i); print("[$i]\n"); }
    while (<STDIN>) { chomp; print("[$_]\n"); }