Someone on usenet (thanks!) suggested using CORE::open() instead of
open() which is trapped by Inline::Files once it is loaded, and this
workaround works. Now i can use this handy package while still dup'ing my
handles!
Damian has been informed about the problem.
Thanks for the response,
-seb.
On Mon, 18 Nov 2002, Brian Ingerson wrote:
> On 16/11/02 18:55 -0800, Sebastien Boving wrote:
> >
> > Once i use Inline::Files in my code, i cannot dup filehandles anymore.
> >
> > For instance:
> >
> > <PERL>
> >
> > #!/usr/local/bin/perl
> > use Inline::Files;
> > open(FILE,">/tmp/temp");
> > if(!open(WHATEVER, '>&FILE')) {
> > die("Can't dup anymore :( ");
> > }
> > print("happy\n");
> > close(FILE);
> >
> > </PERL>
> >
> > dies on me, but without the 'use Inline::Files' it does not.
> >
> > ?!
> >
> > Using perl 5.6.1 and v0.60 of Inline::Files.
>
> I can take a look at this later this week. But it's really Damian's module and
> not related to the Inline::* stuff except by name.
>
> Cheers, Brian
>
>
>