in reply to unwanted text formatting with Archive::zip

perl -e "while(<>){s/\n/\r\n/;print}" inputfile
This is before zipping of course :-)

Replies are listed 'Best First'.
Re: Re: unwanted text formatting with Archive::zip
by extremely (Priest) on Mar 16, 2001 at 01:33 UTC
    perl -pe "s/\n/\r\n/" inputfile might be easier to type. ;) The -p wraps your code in a block like this:
    while(<>){ your_code } continue { print; }

    -n does that without the continue and print. Remember that Perl was invented by the constructively lazy. The got tired of typing while(<>){print} around their code all the time!

    --
    $you = new YOU;
    honk() if $you->love(perl)