in reply to Problem with <STDIN>
Better don't use chop for removing newlines; chop just removes the last char which is ok for unix and linux but not for windows, because there the newline has two chars: CR + LF. Better use chomp which is aware of the different types of line endings
Best regards,
perl -e "s>>*F>e=>y)\*martinF)stronat)=>print,print v8.8.8.32.11.32"
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Problem with <STDIN>
by GrandFather (Saint) on Jun 28, 2006 at 09:45 UTC | |
|
Re^2: Problem with <STDIN>
by ikegami (Patriarch) on Jun 28, 2006 at 14:20 UTC | |
by GrandFather (Saint) on Jun 28, 2006 at 20:20 UTC |