G
Great Deals
I am giving up on writing modules. Too complicated. My only goal is
too many perl programs can use the same subs. Now, I have to copy and
pastes those subs into each perl program. Once I do an update, I have
do re copy paste all over again..
Please show me the easiest/simplest way to move subs to 1 common file
to let many programs to share the same subs.
1 Do I have to include "package" in the pm file?
2 Do I have to return 1; at the end of the module file?
3 What is about __END__ should I put # in front of it?
4 Is there such as include in SSI? so that everytime I run
something.pl, it will automatically include the sub file?
too many perl programs can use the same subs. Now, I have to copy and
pastes those subs into each perl program. Once I do an update, I have
do re copy paste all over again..
Please show me the easiest/simplest way to move subs to 1 common file
to let many programs to share the same subs.
1 Do I have to include "package" in the pm file?
2 Do I have to return 1; at the end of the module file?
3 What is about __END__ should I put # in front of it?
4 Is there such as include in SSI? so that everytime I run
something.pl, it will automatically include the sub file?