You could convert all that logic to:
Then simply key into the hash with $format. I also suggest not using binmode STDOUT when the MIME type is text/plain.my %mimeTypes = ( 'pdf' => 'application/pdf', 'xls' => 'application/vnd.ms-excel', 'xml' => 'text/xml', 'csv' => 'text/plain');
In reply to Re: Deliver a file via HTTPS
by pbeckingham
in thread Deliver a file via HTTPS
by gwhite
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |