Hi people, I can't make this work... foreach $input(<INPUT_FILE>) { chomp $input; print "$input\n"; }
But with this, I do... foreach $input(<INPUT_FILE>) { $input =~ s/\n//; $input =~ s/\r//; print "$input\n"; } In first example, print two new line, in second work fine printing one new line. Why first example don't work? Why don't remove the first new line? I use this example to insert values in a bd, I need it without new line, this is one example to simplify my doubt. Sorry my bad english! Regards, Ricardo Pichler -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>