Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: File Download from Web

by esskar (Deacon)
on Mar 12, 2004 at 02:38 UTC ( [id://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?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (5)
As of 2024-04-19 01:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found