sulfericacid has asked for the wisdom of the Perl Monks concerning the following question:
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: First attempt at a module
by ColtsFoot (Chaplain) on May 21, 2004 at 07:13 UTC | |
|
Re: First attempt at a module
by matija (Priest) on May 21, 2004 at 07:34 UTC | |
by sulfericacid (Deacon) on May 21, 2004 at 07:37 UTC | |
by matija (Priest) on May 21, 2004 at 17:43 UTC | |
| |
|
Re: First attempt at a module
by monkey_boy (Priest) on May 21, 2004 at 08:12 UTC | |
|
Re: First attempt at a module
by ambrus (Abbot) on May 21, 2004 at 11:55 UTC | |
by sulfericacid (Deacon) on May 22, 2004 at 03:19 UTC |