the problem is not the My. 

The program prints:

print 0
print 1
print 2
print 3

and stops

this is the problem

I was hopping to get

print 0
print 1
print 2
print 3
1
2
3

thanks
Marcos

On Fri, 25 Feb 2005 08:26:03 -0500 (EST), Chris Devers
<[EMAIL PROTECTED]> wrote:
> On Fri, 25 Feb 2005, Marcos Rebelo wrote:
> 
> > My $pid = open2(my $RDRFH, my $WTRFH, "perl", "-e", "while (<>)
> > {print}");
> 
> Using 'use warnings' should have told you that 'My' is broken here.
> 
> What messages do you get when you try to run the program?
> 
> --
> Chris Devers
> 
> --
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> <http://learn.perl.org/> <http://learn.perl.org/first-response>
> 
>

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to