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"...
In reply to Re^3: Downloading Gmail attachments - Corrupted saved file
by almut
in thread Downloading Gmail attachments - Corrupted saved file
by casimo
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |