Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re^2: help with Archive::Zip

by diamondsandperls (Beadle)
on Aug 01, 2012 at 15:21 UTC ( #984813=note: print w/ replies, xml ) Need Help??


in reply to Re: help with Archive::Zip
in thread help with Archive::Zip

You have helped me pinpoint the problem my other problem is when I am reading in content and then try to print. I think im replicating the problem correctly. You helped clear up when i print to output directly rather than off of reading in a file or content from a webpage the problem is solved if i do \r\n when printing the output


#!perl use File::Slurp; use strict; use warnings; my $textfile = 'inputfile.txt'; my $output_file = 'file.txt'; my $text = read_file($textfile); open(my $output_fh, '>',"$output_file") or die "Failed to open $output_file: $!"; print {$output_fh} $text, "\r\n"; close $output_fh;


Comment on Re^2: help with Archive::Zip
Download Code
Re^3: help with Archive::Zip
by suaveant (Parson) on Aug 01, 2012 at 17:40 UTC
    Yeah, web browsers handle the translation flawlessly, notepad is not quite so civilized. Glad I could help.

                    - Ant
                    - Some of my best work - (1 2 3)

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://984813]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (14)
As of 2014-09-30 12:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (368 votes), past polls