in reply to paragraph mode and <DATA>
I tried your program and had the same results. When I looked at it via:
od -t x1 892874.plI noticed it had DOS/Windows line endings (\r\n). I notice that if you remove the carriage returns, it works just fine:
$ sed -b 's/\r//g' 892874.pl >t.pl $ perl t.pl ******************** hello world bye ******************** ******************** hello world2 bye2 ******************** ******************** end ********************
It also worked fine when I set $/ to "\r\n\r\n".
...roboticus
When your only tool is a hammer, all problems look like your thumb.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: paragraph mode and <DATA>
by ikegami (Patriarch) on Mar 13, 2011 at 05:56 UTC | |
by roboticus (Chancellor) on Mar 13, 2011 at 06:11 UTC | |
by Anonymous Monk on Mar 13, 2011 at 06:24 UTC | |
by roboticus (Chancellor) on Mar 13, 2011 at 06:44 UTC | |
by ikegami (Patriarch) on Mar 13, 2011 at 07:07 UTC | |
| |
by ikegami (Patriarch) on Mar 13, 2011 at 07:02 UTC |