APM: some simple questions

Goldilox goldilox at teachnet.edb.utexas.edu
Tue Jan 27 12:10:43 CST 2004


is it better form to do this:

while($exlen > 0){$indent=$indent."  ";$exlen=$exlen-1;}

or this

while($exlen){$indent=$indent."  ";$exlen=$exlen-1;}

(or is the second one even going to work?)

2nd question: 
why do sometimes I have to call a subroutine with an ampersand 

&subroutine();

and other times can just say the name of the subroutine

subroutine;

??

Thanks for help, advice, etc!

Rhett




More information about the Austin mailing list