in reply to Re: Downloading Gmail attachments - Corrupted saved file
in thread Downloading Gmail attachments - Corrupted saved file

ikegami, I just tried rewriting that one line and there was no output.
  • Comment on Re^2: Downloading Gmail attachments - Corrupted saved file

Replies are listed 'Best First'.
Re^3: Downloading Gmail attachments - Corrupted saved file
by almut (Canon) on Dec 31, 2009 at 00:01 UTC

    The concatenation dot should've been a comma:

    open (FILE, ">:raw:perlio" . $att->{filename}); ^

    To specify PerlIO layers, you need the 3-argument form of open. Otherwise, the name of the file you try to create will literally start with ":raw:perlio"...

      almut, changing that dot to a comma did the trick.

      I thank you both.