File::Temp a IO::Handle

Jan Kasprzak kas na informatics.muni.cz
Úterý Říjen 29 20:03:10 MET 2002


	Dobry den,

	proc musim pri "use File::Temp" psat take "use IO::Handle"
a proc to ten File::Temp neudela sam, kdyz uz to tak potrebuje
(a neni to dokumentovano v "perldoc File::Temp")?


$ perl -e 'use IO::Handle; use File::Temp qw(tempfile); my ($fh, $name) = tempfile("/tmp/pokus.XXXXXX"); $fh->print("jezek\n");'
(projde OK)

$ perl -e '                use File::Temp qw(tempfile); my ($fh, $name) = tempfile("/tmp/pokus.XXXXXX"); $fh->print("jezek\n");'
Can't locate object method "print" via package "IO::Handle" at -e line 1.

-Yenya

-- 
| Jan "Yenya" Kasprzak  <kas at {fi.muni.cz - work | yenya.net - private}> |
| GPG: ID 1024/D3498839      Fingerprint 0D99A7FB206605D7 8B35FCDE05B18A5E |
| http://www.fi.muni.cz/~kas/   Czech Linux Homepage: http://www.linux.cz/ |
|-- If you start doing things because you hate others and want to screw  --|
|-- them over the end result is bad.   --Linus Torvalds to the BBC News  --|


Další informace o konferenci Perl