in reply to Trouble finding a subroutine
BEGIN{} blocks are executed as soon as they are compiled, before the rest of the file gets compiled. So you tried to call the subroutine before it was compiled.
You need to move the sub help {...} into the BEGIN{} block.
I assume the missing sub keyword was just a typo in the example.
Jenda
|
We'd like to help you learn to help yourself Look around you, all you see are sympathetic eyes Stroll around the grounds until you feel at home -- P. Simon in Mrs. Robinson |
|
|---|