xhsoldier has asked for the wisdom of the Perl Monks concerning the following question:
but each time it will add a carriage return character(0x000d) in front of the character(0x000a, line feed)my $outputstring = pack("n*", @list); print TARGET_FILE $outputstring;
it works well for big-endianbinmode TARGET_FILE; my $outputstring = pack("n*", @list); print TARGET_FILE $outputstring;
it is still auto add a carriage return in front of a line feed, any ideas?binmode TARGET_FILE; my $outputstring = pack("v*", @list); print TARGET_FILE $outputstring;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: auto add a carriage return in front of a line feed, how to delete this auto character.
by Util (Priest) on May 21, 2008 at 03:12 UTC | |
by xhsoldier (Initiate) on May 21, 2008 at 03:34 UTC | |
|
Re: auto add a carriage return in front of a line feed, how to delete this auto character.
by pc88mxer (Vicar) on May 21, 2008 at 03:22 UTC | |
|
Re: auto add a carriage return in front of a line feed, how to delete this auto character.
by Anonymous Monk on May 21, 2008 at 03:10 UTC | |
by xhsoldier (Initiate) on May 21, 2008 at 04:52 UTC | |
by ikegami (Patriarch) on May 21, 2008 at 06:18 UTC |