Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: Remote Pipe

by Robert (Initiate)
on May 31, 2000 at 06:15 UTC ( [id://15559]=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://15559]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (2)
As of 2024-04-26 06:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found