Hi,
I seem unable to open a new filehandle object so I can print some data to it?
I have...
It fails unable to open the file handle.
What am I doing wrong?
Thanks,
1DMF
"In complete darkness we are all the same, it is only our knowledge and wisdom that separates us, don't let your eyes deceive you."
"If a shortcut was meant to be easy, it wouldn't be a shortcut, it would be the way!"
Free Dance Music Downloads
I seem unable to open a new filehandle object so I can print some data to it?
I have...
Code:
# open io handle
my $io_handle = IO::Handle->new();
if ($io_handle->fdopen(fileno("XLS"),"w"))
{
# output column headings to io_handle object
$io_handle->print($xls);
}
else {die "failed to open filehandle";}
It fails unable to open the file handle.
What am I doing wrong?
Thanks,
1DMF
"In complete darkness we are all the same, it is only our knowledge and wisdom that separates us, don't let your eyes deceive you."
"If a shortcut was meant to be easy, it wouldn't be a shortcut, it would be the way!"
Free Dance Music Downloads