> change the sub to read::
>
> open(my $handle, $path) || die $!;
> return $handle;
>
> you get the more meaningful error message:
>
> Invalid value for shared scalar at 1 line 16.
>>> Yep. This was the original reason I switched to globs which worked
well, seemingly, but alas...
>
At 13:44 -0700 4/13/04, Steve Schein wrote:
Liz:
I put together some sample code below that generates the error to which
I've been referring using Perl 5.8.4RC1. It should run fine on 5.8.0.
My output is:
The new filehandle is: *main::FH
The number of items in the active user's data array is/are:
Liz:
I put together some sample code below that generates the error to which
I've been referring using Perl 5.8.4RC1. It should run fine on 5.8.0.
My output is:
The new filehandle is: *main::FH
The number of items in the active user's data array is/are: 2
Can't upgrade that kind of scalar
Liz:
I've built and installed Perl 5.8.4RC1 and I'm now trying to make the
basics work before I look at the memory issue stated in my original
post.
An error message of:
"thread failed to start: Can't upgrade that kind of scalar"
is introduced now when the program attempts to access a filehandl