in reply to File Download from Web
lets say your script is generating a gif
then just add to your web page as pointed out above#!/usr/bin/perl # script.pl use strict; use warnings; my $gif = pack("H*", '47494638396101000100B30000888888' . 'FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF' . 'FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF' . 'FFFFFFFFFFFFFFFFFFFFFFFFFF2C0000' . '0000010001000004021044003B' ); print "Content-Type: image/gif\n\n"; binmode STDOUT; print $gif;
<a href="script.pl">A Gif</a>
|
---|
In Section
Seekers of Perl Wisdom