Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

(bbq) Re: Re: Embed GIF in perl source?

by BBQ (Curate)
on Dec 07, 2000 at 12:07 UTC ( [id://45461]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    # hex up your image
    open IMG, "$ARGV[0]"
    ...
    while ($txt = substr($hex,0,32,'')) {
        print "'$txt'\n";
    }
    
  2. or download this
    # print your hexed stuff out
    print "Content-type: image/gif\n\n";
    ...
    
      return(pack("H*",$image));
    }
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (6)
As of 2024-03-28 11:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found