should do the trickopen(OUT,">$outfile"); open(F1, "<$infile") or die "Could not open $infile for reading!\n"; $/ = "#"; while (<F1>) { chomp; # <--- remove trailing newline character print OUT "$_\n"; }
In reply to Re: skip newline charater when reading
by svenXY
in thread skip newline charater when reading
by coldy
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |