I produce a lot of ASCII files that need to end in '0D0A'. The script can be run from both Windows and Linux. Normally I do something like:
my $line_delimiter = ($^O eq "MSWin32")?"\n":"\r\n"; sprintf("%-$line_width" . "s", $line) . $line_delimiter;
The line-width is typically 78 or 70 (excluding the 2 added by the line-delimiter) for my purpose. Tailor it according to your needs.
Cheers
Harry
In reply to Re: How to insert Hexadecimal characters
by dHarry
in thread How to insert Hexadecimal characters
by paragkalra
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |