How about if($a == $b) ?
-----Original Message-----
From: Gross, Stephan [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, October 24, 2001 9:47 AM
To: 'Beginner Perl'
Subject: Why doesn't RETURN work?
I have a subroutine
sub xyz
{
if ($a = $b)
{
return;
}
}
When I run this in the debugger, it stays frozen on the RETURN statement.
Shouldn't the RETURN break out of the xyz subroutine?
Also, this used to work until I made some changes. Am I missing something
obvious?
Steve
_______________________________________________________
Stephan Gross Loral Skynet 908-470-2388 [EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]>
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]