in reply to In-Place Edit - Null Characters
Perl stops reading the file at the first ^Z character, because -i.bak-Mode does not enable binmode. The following oneliner should work:
perl -i.bak -e "BEGIN{binmode STDOUT}" -p test.pl adp.rsf
As you don't post any code, it's hard to give you a more elegant version though.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: In-Place Edit - Null Characters
by ikegami (Patriarch) on Dec 23, 2005 at 05:54 UTC | |
|
Re^2: In-Place Edit - Null Characters
by Anonymous Monk on Dec 23, 2005 at 00:36 UTC | |
by eric256 (Parson) on Dec 23, 2005 at 00:41 UTC | |
by Anonymous Monk on Dec 23, 2005 at 00:49 UTC | |
by eric256 (Parson) on Dec 23, 2005 at 04:15 UTC | |
by Anonymous Monk on Dec 23, 2005 at 01:00 UTC |