Re: embedding xpm images in your perl scripts



* muppet <scott asofyet org> [2003-11-30 15:20]:
does this look useful enough to distribute and install with
Gtk2 (like gdk-pixbuf-csource, which comes with gtk+)?

Absolutely.

Attached is a version that uses Regexp::Common to actually parse
the XPM file.  (If you don't like the dependency, it is always
possible to stringify the regexen provided by the module and
embed them directly in the script.)

-- 
Regards,
Aristotle
 
"If you can't laugh at yourself, you don't take life seriously enough."

Attachment: xpm2perl
Description: Text Data



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]