in reply to Re: Formats and Variables
in thread Formats and Variables
It says: write() on unopened filehandle IO::Scalar::FH at format_test.cgi line 29 (#1) (W unopened) An I/O operation was attempted on a filehandle that was never initialized. You need to do an open(), a sysopen(), or a socket() call, or call a constructor from the FileHandle package.use IO::Scalar; my $bufferVar = ""; my $SH = new IO::Scalar \$bufferVar; print $SH "Hi there, 1."; ### This works just dandy. select ($SH); print "Hi there, 2."; ### This also works. $bufferVar now contains "H +i there, 1.Hi there, 2." $~ = "myFirstFormat"; ### Allegedly this is happy. I have tested thi +s format independently, and it works fine. write ; ### This barfs.
Help?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Formats and Variables
by runrig (Abbot) on Jan 25, 2002 at 08:59 UTC |