in reply to RE: Re: Remote Pipe
in thread Remote Pipe

This is what I've got: Too many arguments for open at test1.pl line 5, near "$tmp) " Execution of test1.pl aborted due to compilation errors.

Replies are listed 'Best First'.
RE: Re: Remote Pipe
by mikfire (Deacon) on May 31, 2000 at 06:25 UTC
    I cannot reproduce that locally, but it still looks like a precendence problem to me.

    Try changing your open statements and stop mixing, ie, do this

    open( TMP, ">$tmp" ) || die( "A grim and horrible death" );
    or do it like this
    open TMP, ">$tmp" or die "A grim and horrible death";
    I believe the second method is considered more Perlish.

    Mik
    mikfire