[sr-dev] syntax error in switch statement

Juha Heinanen jh at tutpro.com
Tue Sep 22 15:41:39 CEST 2009


Juha Heinanen writes:

 > i'm getting syntax error on last line of this kind of switch statement:
 > 
 > 	if (defined($fd.foo)) {
 > 	    switch ($fd.foo) {
 > 		case "fi":
 >    	        route(TEST);
 > 		return($retcode);
 > 
 > why is that?  in k, that kind of construct used to work.

i figured it out, $retcode does not exist in sr.  $rc works.

-- juha



More information about the sr-dev mailing list