I've read quite a few links already on modules but I'm still not getting quite what I'm looking for. For now, I'm just trying to setup a simple module that does SOMETHING, in this case just print "HELLO WORLD". No errors are appearing at run time but nothing prints, can someone explain why?
Essentially I'm looking to have something setup like LWP::Simple where I can use things such as
my $this = get($that);
where get() could be collect() or anything. That's what I'm trying to get a module to be able to do incase anyone has suggestions on how that is done. I ripped open Simple.pm and needless to say that didn't explain much :)
Both mod.pl and TestPrint.pm are sitting on my desktop so they're both in the same place.
As suggested by two people, I tried using both of these and the lack of results are the same:
@ISA = 'Exporter';
@EXPORT_OK = qw(test_print);
print "hello world";
use TestPrint qw(test_print);
&test_print; # seems to do nothing
test_print(); # also seems to do nothing
"Age is nothing more than an inaccurate number bestowed upon us at birth as just another means for others to judge and classify us"