>| eval('testfun')
>|
>| works if testfun.m is a function, but fails with something like
>|
>| error: `testfun' undefined near line 6 column 1
>|
>| if testfun.m is a script.
>
>I checked in the following change.
thanks, this fixes the problem for me.
-M