Article View: pl.comp.lang.perl
Article #623Jak wyswietlic GIF'a
From: Krzysztof Gmyr
Date: Thu, 23 Oct 1997 19:30
Date: Thu, 23 Oct 1997 19:30
25 lines
1254 bytes
1254 bytes
witam!
mam pytanie z gatunku trywialnych, ale dopiero zaczynam pisac w Perlu.
Jak wyswietlic zawartosc GIF'a na stronie WWW?
jak pisze:
print "Content-type: image/gif\n\n";
open( GIF, $gif ) or die "open: $!";
while( ( $n = sysread GIF, $buffer, 1024 ) > 0 ) {
syswrite STDOUT, $buffer, $n;
}
close GIF;
to nie dziala i wiem, ze to przez 'syswrite' ale nie wiem gdzie zrobilem
blad.
--
---------------------------+---------------------------------
Krzysztof 'Lovely' Gmyr | Glosujcie na Internetowa
| Liste Przebojow
gmyr@umt.ipl.net
ICQ: 2506363 http://www.tarnow.ipl.net/~gmyr/lista/
---------------------------+---------------------------------
Technical Details
Message-ID:
<344FA5BB.2FBCD2A3@umt.ipl.net>Path:
mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!pingwin.icm.edu.pl!agh.edu.pl!not-for-mailShow Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!pingwin.icm.edu.pl!agh.edu.pl!not-for-mail From: Krzysztof Gmyr <gmyr@umt.ipl.net> Newsgroups: pl.comp.lang.perl Subject: Jak wyswietlic GIF'a Date: Thu, 23 Oct 1997 20:30:03 +0100 Organization: City Hall ofTarnow Lines: 25 Message-ID: <344FA5BB.2FBCD2A3@umt.ipl.net> NNTP-Posting-Host: dial3.toi.tarnow.pl Mime-Version: 1.0 X-Mailer: Mozilla 4.01 [en] (Win95; I) X-Priority: 3 (Normal) Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit