Hi, 'if ($a = $b)'
is not comparing $a to $b, it is assigning the value of $b into $a If you want to test for numeric equivalence, use two '='s like 'if ($a == $b)' Then your code should be fine, Baz. -----Original Message----- From: Gross, Stephan [mailto:[EMAIL PROTECTED]] Sent: Wednesday, October 24, 2001 2:47 PM 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]