Hi, Martin
I've switched to UNIVERSAL for type checking, and rewritten the scalar handling.
I think I might be able to reduce the minimum perl version number now. Could
you confirm that it works for you? The old version was explicitly marked as being
for perl 5.8 and greater because of some of the language features I was using
(including opening scalar values as 'files', without directly resorting to
using the IO::Scalar package)
The new scalar handler is actually a good deal simpler, as it just does substr
extraction.
Let me know if it works for you.
Norman
On Sun May 21 11:20:36 2006, guest wrote:
Show quoted text> example t\hash.t is not working - at least under perl 5.6.1.
>
> This example uses the ($window,SCALAR) variant of the constructor.
> the constructor interpretes this as a filename - which is wrong.
>
> Further, a check is made if the given parameter is a subclass of
> IO::Filehandle by calling: $source->isa("IO::Handle")
>
> This fails, if $source is just a coderef, not a blessed reference.
> The check is better written as UNIVERSAL->isa("IO::Handle")
>
> Regards,
> Martin