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
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
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
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
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
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
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,
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
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
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
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
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/
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
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:
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
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 = {
16 matches
Mail list logo