On Mon, 30 Sep 2002, Davide Copelli wrote: > I am using this script to print an image using <img> tag > > print "Content-type:image/gif\n\n"; > @gifdata = `cat $giffile`; > print @gifdata; > > The problem is that it works on unix but not on windows operating sistem
Fun aswer: s/cat/type/ A little more serious: open F, $giffile or die "horribly"; print "Content-type: image/gif\n\n"; print <F>; close F; An even more serious answer would be too long, and probably discouraging. ;-) -- Philippe BRUHAT - BooK Financez le d�veloppement de Perl, avec YAS et les Mongueurs de Perl ! http://www.mongueurs.net/association/actions/pdg2002.html
