"So so tired, here the time is 4:50 am. ..."
Then get some sleep!
"I did read Exporter quickly not thoroughly ..."
Well there's a problem! Go and read it, not just glance at it, after you awake and are refreshed.
"... but the code that I am using is taken from Simple Module Tutorial, ..."
No, it's not! Look again, after you awake and are refreshed.
"... so I assume it should work straight out of the box."
I don't think it would have got Reputation: 315 (no significant downvotes), if it didn't work.
However, you're not using it "straight out of the box". You've made significant changes to it!
After you've had some sleep and are refreshed, go through the tutorial code and your code, line by line, and note all the differences.
Then, the next step will be to make your code look more like the tutorial code. When you've done that, you'll probably find that it works just fine.
-- Ken
In reply to Re^5: Undefined subroutine &main::func1
by kcott
in thread Undefined subroutine &main::func1 [SOLVED]
by thanos1983
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |