Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery

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?

Replies are listed 'Best First'.
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?

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (6)
As of 2016-10-20 21:59 GMT
Find Nodes?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?

    Results (283 votes). Check out past polls.