in reply to subroutine no error
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: subroutine no error
by adriang (Sexton) on Jul 23, 2014 at 10:31 UTC | |
by AppleFritter (Vicar) on Jul 23, 2014 at 10:40 UTC | |
by adriang (Sexton) on Jul 23, 2014 at 10:51 UTC |