> > Hello.
> >
> > Why is is that something like this...
> >
> > if (condition) {
> > do something;
> > do somethingelse;
> > }
> >
> > doesn't need semicolons after the brackets, but this...
> >
> > $ftp -> login ($user, $pass) or do {
> > error_sub ($_ = "Cannot login to host, username or password
> > incorrect!");
> > cleanup();
> > return;
> > };
> >
> > does?
>
>
> Because in your second example, the do {} was only part of
> the line (one
> condition of the "or" statement). You still need to terminate
> the whole
> line ($ftp->...) with a semicolon.
Aha! Thanks folks.
What really threw me was my formatting, I suppose. When the syntax error
popped up, it was aaaaages before I found it. If it'd been a short do, so it
all fitted on one line, I would've spotted it much sooner.
Thanks again.
R.
_______________________________________________
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs