Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re^2: Or Operator

by rjahrman (Scribe)
on Jul 30, 2004 at 23:47 UTC ( #378838=note: print w/ replies, xml ) Need Help??


in reply to Re: Or Operator
in thread Or Operator

I have another similar line:
$ftp = Net::FTP->new("ftp.$dom", Debug => 0) or $loginerror = "Error message.";

Should this work like I think it does?


Comment on Re^2: Or Operator
Re^3: Or Operator
by ysth (Canon) on Jul 31, 2004 at 00:39 UTC
    If you think it will set $ftp to the result of the new method call, and if that was false set $longin error, it will.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (9)
As of 2014-12-19 01:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (69 votes), past polls