I find chomp() usefull for processing a file, or other input (eg keyboard).
#!/usr/bin/perl use strict; use warnings; while(<>) { print "$_"; # $_ has a newline attached, either from file or STDIN chmop; doSomethingWithTheString($_); } -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/