Essentially I'm looking to have something setup like LWP::Simple where I can use things such as
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 :)my $this = get($that);
Both mod.pl and TestPrint.pm are sitting on my desktop so they're both in the same place.
UPDATE----------
As suggested by two people, I tried using both of these and the lack of results are the same:
&test_print;
test_print();
/UPDATE----------
TestPrint.pm package TestPrint; use Exporter; @ISA = 'Exporter'; @EXPORT_OK = qw(test_print); use strict; sub test_print { print "hello world"; return; } 1; __END__ mod.pl #!/usr/bin/perl use warnings; use strict; use TestPrint qw(test_print); &test_print; # seems to do nothing test_print(); # also seems to do nothing
In reply to First attempt at a module by sulfericacid
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |