I just have a few basic questions that I'm sure the monks here wouldn't have any problem answering.
The only difference between a package and a module is the extension of .pm and and the module requires the package name? Is that right?
A module is nothing more than Perl code it looks like. I thought it was a lot different from looking at some posts in here showing them. I guess what made me think they were more complicated was the =HEAD NAME and =HEAD DESCRIPTION type headings. The example I was looking at is Text::Tab since it's a small module and this appears at the BOTTOM of the script. Are these required and what are their purpose? The tutorials I found didn't list these and I don't believe this is induced in the script. Maybe it's just for people to read when they view the source code?
Now comes down to the theory behind using modules.. I know there is a difference between use and require, but when it comes to using variables inside the module should we be using $_ or @_ more often than predefined names? Or how does our data imported from our script into the module if it requires specific names? (note: I know some modules have their own variables to use).
Thanks for all your help, wise monks! I'm sure when I venture deeper into this I'll have more questions on the topic.
In reply to Creating modules by sulfericacid
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |