in reply to Re^2: opening a file for printing
in thread opening a file for printing
use strict; use File::MimeInfo; # ...get $location from DB.... my $mtype = mimetype($location); open my $fh, $location or die "Could not open $location: $!"; print "Content-type: $mtype\n\n"; print while <$fh>;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: opening a file for printing
by sulfericacid (Deacon) on Feb 16, 2005 at 19:06 UTC | |
by friedo (Prior) on Feb 16, 2005 at 19:47 UTC |