Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: File Download from Web

by esskar (Deacon)
on Mar 12, 2004 at 02:38 UTC ( #336056=note: print w/replies, xml ) Need Help??


in reply to File Download from Web

lets say your script is generating a gif
#!/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;
then just add to your web page as pointed out above
<a href="script.pl">A Gif</a>

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://336056]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (2)
As of 2023-03-24 07:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Which type of climate do you prefer to live in?






    Results (60 votes). Check out past polls.

    Notices?