|
|
ru.perl- RU.PERL ---------------------------------------------------------------------- From : Alexandr Murin 2:6070/148 05 Mar 2001 23:08:43 To : Serge Shikov Subject : Content-type:image/jpeg -------------------------------------------------------------------------------- 05 Мар 01 13:49, некто Serge Shikov написал All: >> AM> print "Content-type: image/gif\n\n"; >> open(GIF, 'image.gif'); >> binmode(GIF); >> binmode(STDOUT); >> print <GIF>; >> close(GIF); >> Hаконец-то всё зароботало,Спасибо!!!!!!!!!!! >> Косяк был в строчке binmode(STDOUT),а точнее в её отсyтсвие. SS> Дык сразу предупреждать надо, что у вас система кривая... Мужики, маны курить не надо. Причём тут "кривая"/"не_кривая" система (или разжигать flame wars - ваша цель)? Попробуйте использовать маны по назначению: ======== On many systems binmode() currently has no effect, but in future, it will be extended to support user-defined input and output disciplines. On some systems binmode() is necessary when you're not working with a text file. For the sake of portability it is a good idea to always use it when appropriate, and to never use it when it isn't appropriate. In other words: Regardless of platform, use binmode() on binary files, and do not use binmode() on text files. ======== За cим вcе. Alexandr AKA /948. (amur<at>forus.ru) --- Windows 2000 Professional ENG SP1 (UpTime: 11d 02:04:47) * Origin: Заказывайте кирпичи по адресу (2:6070/148) Вернуться к списку тем, сортированных по: возрастание даты уменьшение даты тема автор
Архивное /ru.perl/23153aa40ff1.html, оценка из 5, голосов 10
|