in reply to
Inline images in POD
in thread pod and images
How did you create the src string?
See URI::data - URI that contains immediate data
use strict; use warnings;
use URI; use IO::File;
my $u = URI->new("data:");
$u->data(join '', IO::File->new( 'camel.favicon.png' , '<:raw' )->getl
print qq[<p><img src="$u">\n];
FWIW, new questions go in Seekers Of Perl Wisdom
Welcome, see The Perl Monks Guide to the Monastery, see How do I post a question effectively?, Where should I post X?
data:-URLs are nice, but they have limits: Old browsers and especially IE<7 can't handle them, IE<9 has some arbitary limits for the data URL length. See http://en.wikipedia.org/wiki/Data_URI_scheme for a good overview.
Base64 encoding can be done from the command line, as documented in MIME::Base64.
I think I simply mailed it to myself and copied the base64 encoding.
Use subroutines for code reuse
Master regular expressions
Write my GUIs with Perl
Abandon CGI in favor of some modern web framework
Put my code in modules
Create CPAN distributions
test and document my code as I write it
Write OOP with or without animal help
Finally switch to a modern Perl style
Create a killer application with Perl
Detoxify from Perl and PerlMonks
Choose another language because Perl is dead
Learn to program for mobile devices
Complete my secret world domination project
None, because the road to hell is paved with good intentions
Results (220 votes),