NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.
All the Perl that's Practical to Extract and Report
Stories, comments, journals, and other submissions on use Perl; are Copyright 1998-2006, their respective owners.
Similar to what I have (Score:1)
Nine is quite a bit more elaborate though. Notable differences:
so I don't get stuff inadvertantly overwritten. Also,
so I don't have to look at MIME types that way only seemed to lead to madness. (What're you passing a parameter to
->filename()for btw?)Other reaso
Re:Similar to what I have (Score:2)
The docs say 'Normally it will return the filename from the headers, but if filename is passed a true parameter, it will generate an appropriate "stable" filename if one is not found in the MIME headers.' So it's a safety feature. It invents a filename if one isn't already given.
Reply to This
Parent
Re:Similar to what I have (Score:1)