in reply to Re^2: how to write a module
in thread how to write a module
Case 1: Because our module exports nothing by default we get errors...
When I run Case 1, I get this error, as expected:
Undefined subroutine &main::func1 called at ...
Case 3 will also generate an error; Cases 2 and 4 should work properly.
|
|---|