in reply to Saving PDF files from gmail
Maybe this is a line ending issue (especially if running this on non-Linux/Unix systems).
Try adding ':raw' to the mode in your open call:
open($fh, '>:raw', "$filepath" . "$_->{filename}");
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Saving PDF files from gmail
by anonymonk (Acolyte) on Jun 26, 2015 at 15:58 UTC | |
by RonW (Parson) on Jun 26, 2015 at 17:02 UTC |