Re: using a homemade perl module

2007-06-30 Thread Mathew Snyder
Mumia W. wrote: > On 06/28/2007 10:22 PM, Mathew Snyder wrote: >> >> I'm getting a strange bit of behaviour. I have everything set up >> right and my dates are getting made up properly however, one sub which >> creates the searchDate array isn't being called. I have to enter the >> full module pa

Re: using a homemade perl module

2007-06-29 Thread Mumia W.
On 06/28/2007 10:22 PM, Mathew Snyder wrote: I'm getting a strange bit of behaviour. I have everything set up right and my dates are getting made up properly however, one sub which creates the searchDate array isn't being called. I have to enter the full module path (Reports::Dates::searchD

Re: using a homemade perl module

2007-06-28 Thread Mathew Snyder
Paul Johnson wrote: > On Thu, Jun 28, 2007 at 06:58:36AM -0500, Mumia W. wrote: > >> On 06/28/2007 03:00 AM, Mathew Snyder wrote: >>> our @ISA = qw(Exporter); >>> our @EXPORT = qw(startDate endDate searchStart searchEnd); >>> our $VERSION = '1'; >> Those lines need to be w

Re: using a homemade perl module

2007-06-28 Thread Mathew Snyder
Paul Johnson wrote: > On Thu, Jun 28, 2007 at 06:58:36AM -0500, Mumia W. wrote: > >> On 06/28/2007 03:00 AM, Mathew Snyder wrote: >>> our @ISA = qw(Exporter); >>> our @EXPORT = qw(startDate endDate searchStart searchEnd); >>> our $VERSION = '1'; >> Those lines need to be w

Re: using a homemade perl module

2007-06-28 Thread Mumia W.
On 06/28/2007 07:46 AM, Paul Johnson wrote: On Thu, Jun 28, 2007 at 06:58:36AM -0500, Mumia W. wrote: On 06/28/2007 03:00 AM, Mathew Snyder wrote: our @ISA = qw(Exporter); our @EXPORT = qw(startDate endDate searchStart searchEnd); our $VERSION = '1'; Those lines need

Re: using a homemade perl module

2007-06-28 Thread Paul Johnson
On Thu, Jun 28, 2007 at 06:58:36AM -0500, Mumia W. wrote: > On 06/28/2007 03:00 AM, Mathew Snyder wrote: > > > >our @ISA = qw(Exporter); > >our @EXPORT = qw(startDate endDate searchStart searchEnd); > >our $VERSION = '1'; > > Those lines need to be within a BEGIN block. S

Re: using a homemade perl module

2007-06-28 Thread Mumia W.
On 06/28/2007 03:00 AM, Mathew Snyder wrote: our @ISA = qw(Exporter); our @EXPORT = qw(startDate endDate searchStart searchEnd); our $VERSION = '1'; Those lines need to be within a BEGIN block. See perlmod: http://perldoc.perl.org/perlmod.html -- To unsubscribe,

Re: using a homemade perl module

2007-06-28 Thread Mathew Snyder
Brad Baxter wrote: > On Jun 14, 10:22 pm, [EMAIL PROTECTED] (Mathew Snyder) wrote: >> I fixed all of the bugs save one. I can't access any of my subroutines >> without >> explicitly using it with dates_emails::subroutine. I was under the >> impression >> that if I was exporting them all from th

Re: using a homemade perl module

2007-06-15 Thread Brad Baxter
On Jun 14, 10:22 pm, [EMAIL PROTECTED] (Mathew Snyder) wrote: > I fixed all of the bugs save one. I can't access any of my subroutines > without > explicitly using it with dates_emails::subroutine. I was under the impression > that if I was exporting them all from the module, the subroutine woul

Re: using a homemade perl module

2007-06-15 Thread Martin Barth
oh! you're right! i'm sorry. On Fri, 15 Jun 2007 16:51:48 +0800 Jeff Pang <[EMAIL PROTECTED]> wrote: > Martin Barth 写道: > > Well the code looks ok. > > > > I just wrote some simple test code to do the same thing like you, but > > it worked as exepcted. Are there some differeces between that exa

Re: using a homemade perl module

2007-06-15 Thread Jeff Pang
Martin Barth 写道: Well the code looks ok. I just wrote some simple test code to do the same thing like you, but it worked as exepcted. Are there some differeces between that example and your code? HTH % ls Module.pm test.pl % cat Module.pm #!/usr/bin/perl -w use strict; require Exporter; our

Re: using a homemade perl module

2007-06-15 Thread Martin Barth
Well the code looks ok. I just wrote some simple test code to do the same thing like you, but it worked as exepcted. Are there some differeces between that example and your code? HTH % ls Module.pm test.pl % cat Module.pm #!/usr/bin/perl -w use strict; require Exporter; our @ISA = qw/Exporter/

Re: using a homemade perl module

2007-06-14 Thread Mathew Snyder
I fixed all of the bugs save one. I can't access any of my subroutines without explicitly using it with dates_emails::subroutine. I was under the impression that if I was exporting them all from the module, the subroutine would be found regardless. package dates_emails; require Exporter; use str

Re: using a homemade perl module

2007-06-14 Thread Mathew Snyder
That worked. Thanks. Now I just need to figure out all of the undeclared variables ;) Mathew Keep up with me and what I'm up to: http://theillien.blogspot.com Martin Barth wrote: > Hi, > > try: > > use lib "/usr/local/bin/lib/"; > use dates_email; > > HTH Martin > > On Thu, 14 Jun 2007 01:

Re: using a homemade perl module

2007-06-14 Thread Martin Barth
Hi, try: use lib "/usr/local/bin/lib/"; use dates_email; HTH Martin On Thu, 14 Jun 2007 01:50:57 -0400 Mathew Snyder <[EMAIL PROTECTED]> wrote: > To take this further I've changed the code. It now looks like this: > > package dates_emails; > require Exporter; > use strict; > > our @ISA

Re: using a homemade perl module

2007-06-13 Thread Mathew Snyder
To take this further I've changed the code. It now looks like this: package dates_emails; require Exporter; use strict; our @ISA = qw(Exporter); our @EXPORT = qw(startDate, endDate, searchStart, searchEnd); our @EXPORT_OK = qw($emailTo, $emailFrom, $emailBcc); our %EXPORT_TAGS = {