Howdy adriang, welcome back to the Monastery!
You're only declaring %CS101 after calling ave(), so at the time ave is running, it does not exist yet and therefore can't be accessed. Move the declaration to somewhere before the subroutine call, and all will be fine.
In reply to Re: subroutine no error
by AppleFritter
in thread subroutine no error
by adriang
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |