MIME::Head a vstup z retezce

Jan Kasprzak kas na informatics.muni.cz
Čtvrtek Srpen 12 18:07:49 MEST 1999


	Zdravim,

	potreboval bych pouzit MIME::Head, ale tu hlavicku nemam v souboru,
ani v deskriptoru, ale v retezci. Podle dokumentace MIME::Head je mozno
tento objekt konstruovat takto:

    # Parse a new header from a filehandle:
    $head = MIME::Head->read(\*STDIN);
    
    # Parse a new header from a file, or a readable pipe:
    $testhead = MIME::Head->from_file("/tmp/test.hdr");
    $a_b_head = MIME::Head->from_file("cat a.hdr b.hdr |");

	Lze nejak (pomoci IO::Scalar?) vytvorit MIME::Head bez
docasneho souboru?

-Yenya

-- 
\ Jan "Yenya" Kasprzak <kas at fi.muni.cz>       http://www.fi.muni.cz/~kas/
\\ PGP: finger kas at aisa.fi.muni.cz   0D99A7FB206605D7 8B35FCDE05B18A5E //
\\\             Czech Linux Homepage:  http://www.linux.cz/              ///
| The case with NT is the most spectacular.  Seems, they have at least two |
| independant teams.  One introduces bugs, another invents workarounds.    |
| Silly bugs are followed by ugly workarounds. 8)       --Alexey Kuznetsov |


Další informace o konferenci Perl