Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
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 taking refuge in the Monastery: (6)
As of 2015-07-07 11:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (88 votes), past polls