>
> Objet: Re: How to open STDOUT ?
> Date: Thu, 13 Jun 2002 21:34:16 -0700
> De: "Todd Wade" <[EMAIL PROTECTED]>
> A: [EMAIL PROTECTED]
>
> "Franck Fasano" <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > Hi,
> >
> > I have recuperated a module from the web and I interfaced
> > with it but STDOUT is closed .
> > If I do a : print STDOUT "hello\n" in my script, nothing appeared .
> >
> > I don't know where STDOUT is closed and how to re-open it ?
> >
>
> I would try to figure out why its closed first.
>
> say:
>
> print STDOUT "hello\n" or die("Print failed: $!");
>
> this will call die() if print() returns false, reporting the error.
>
> Todd W
>

There is no error reporting by print but I succeed to find in what
case it doen't work :

Let's see the 2 scripts test.pl and test2.pl  :

If you execute "test.pl" it works and print correctly.

If you execute "test2.pl" which executes test.pl, it doesn't work .

Why? I don't know ? ...

Attachment: test.pl
Description: Perl program

Attachment: test2.pl
Description: Perl program

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to