get() function - troubles with pdf and zip files.

M

Marco

Hi,

I try to download some pdf or zip from interet with a perl scripts.

I use the following function.

I open file on my computer called FIC then

$file = get("http://dddddd.zip");
print FIC $file;

The file is downloded but it cannot be read, while when I do the same
process with txt or html it works pefectly.

Do you have any idea of how can I solve this problem?

Thanks,

Marco
 
M

Michael Budash

Hi,

I try to download some pdf or zip from interet with a perl scripts.

I use the following function.

I open file on my computer called FIC then

$file = get("http://dddddd.zip");
print FIC $file;

The file is downloded but it cannot be read, while when I do the same
process with txt or html it works pefectly.

Do you have any idea of how can I solve this problem?

Thanks,

Marco

perldoc -f binmode
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top