Re: module question

2008-06-14 Thread Jeff Peng
On Sun, Jun 15, 2008 at 2:19 AM, Richard Lee <[EMAIL PROTECTED]> wrote: > > thank you! it works now. > > First time ever using our.. I read about it but never had to use it till > now.. just have to read up on it more. > You may also read this classical article for Perl's variable scope: http:/

Re: module question

2008-06-14 Thread Richard Lee
Jeff Peng wrote: On Sat, Jun 14, 2008 at 11:21 PM, Richard Lee <[EMAIL PROTECTED]> wrote: trying to follow some modules examples.. but have a quick quesiton Below pm works if I don't use strict and use @ISA and @EXPORT.. but not when I use strict and my @ISA and my @EXPORT @I

Re: module question

2008-06-14 Thread Jeff Peng
On Sat, Jun 14, 2008 at 11:21 PM, Richard Lee <[EMAIL PROTECTED]> wrote: > trying to follow some modules examples.. but have a quick quesiton > > Below pm works if I don't use strict and use @ISA and @EXPORT.. but not > when I use strict and my @ISA and my @EXPORT > @ISA and @EXPORT are p

Re: Module question

2007-05-24 Thread Jeff Pang
David Moreno Garza 写道: Jeff Pang wrote: @EXPORT was used for exporting symbol (methods or variables) by default. When you say, use base 'Exporter'; our @EXPORT = qw/&mysub/; .. then mysub() would be exported into caller's name space defaultly. Would that also work using: our @EXPORT = qw/mysu

Re: Module question

2007-05-24 Thread David Moreno Garza
Jeff Pang wrote: > @EXPORT was used for exporting symbol (methods or variables) by default. > When you say, > use base 'Exporter'; > our @EXPORT = qw/&mysub/; > .. > then mysub() would be exported into caller's name space defaultly. Would that also work using: our @EXPORT = qw/mysub/; ? Or is

Re: Module question

2007-05-17 Thread Jeff Pang
Robert Hicks 写道: Is @EXPORT_OK for those items you want to import by "name" and %EXPORT_TAGS for those items you want to group like :all or :select? Almost right. What is @EXPORT used for then if that is the case above? @EXPORT was used for exporting symbol (methods or variables) by defa

Re: Module question

2005-08-06 Thread Robert
On 8/6/05 12:04 PM, in article [EMAIL PROTECTED], "Xavier Noria" <[EMAIL PROTECTED]> wrote: > On Aug 6, 2005, at 17:32, Robert wrote: > >> If I have ideas for modules I want to contribute do I "register" those >> with CPAN first? > > This page explains the process and gives some advices: > >

Re: Module question

2005-08-06 Thread Xavier Noria
On Aug 6, 2005, at 17:32, Robert wrote: If I have ideas for modules I want to contribute do I "register" those with CPAN first? This page explains the process and gives some advices: http://perldoc.perl.org/perlnewmod.html -- fxn -- To unsubscribe, e-mail: [EMAIL PROTECTED] For addition

Re: module question

2001-07-20 Thread Jerry Preston
Maxim, Thanks, Jerry Maxim Berlin wrote: > > Hello Jerry, > > Friday, July 20, 2001, Jerry Preston <[EMAIL PROTECTED]> wrote: > > JP> I tried $$ and still no output. What in the module did I do to > JP> make you think the $$ would work? > > do you replace > %wdf = $ki->test; > with > $w

Re: module question

2001-07-20 Thread Jerry Preston
Maxim, I tried $$ and still no output. What in the module did I do to make you think the $$ would work? Thanks, Jerry Maxim Berlin wrote: > > Hello Jerry, > > Friday, July 20, 2001, Jerry Preston <[EMAIL PROTECTED]> wrote: > > JP> My program to test out my module is: > > JP> #!/usr/local

Re: module question

2001-07-20 Thread Maxim Berlin
Hello Jerry, Friday, July 20, 2001, Jerry Preston <[EMAIL PROTECTED]> wrote: JP> My program to test out my module is: JP> #!/usr/local/bin/perl JP> use CGI; JP> use CGI::Carp qw(fatalsToBrowser); JP> use KI; JP> $ki = new KI(); JP> $query=new CGI; JP> print $query->header(); JP>

RE: Re: Module question

2001-07-19 Thread Eric J. Wisti
, July 20th 2001. Eric On Thu, 19 Jul 2001, Bob Showalter wrote: > Date: Thu, 19 Jul 2001 17:13:03 -0400 > From: Bob Showalter <[EMAIL PROTECTED]> > To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]> > Cc: [EMAIL PROTECTED] > Subject: RE: Re: Module question

RE: Re: Module question

2001-07-19 Thread Bob Showalter
[EMAIL PROTECTED] wrote: > Like I said I was frustrated. I'm using the Deitel and > Deitel book. But it is probably not it's fault. I'm just confused. Don't know the book. I Suggest the O'Reilly books. > I thought I understood I needed to define how I should use > the module so it would use

Re: Re: Module question

2001-07-19 Thread anna . roberts
Like I said I was frustrated. I'm using the Deitel and Deitel book. But it is probably not it's fault. I'm just confused. I thought I understood I needed to define how I should use the module so it would use it. But from what you just said I guess not. Please provide assistance or a exa

Re: Module question

2001-07-19 Thread Michael Fowler
On Thu, Jul 19, 2001 at 03:38:32PM -0400, [EMAIL PROTECTED] wrote: > use Date::Calc; > sub dateFriday > { > $day="friday"; > $num="3"; > my $dumpday = " $num $day "; > print ("$dumpday for level0 dump."); > } > print ( "Time to do level 0 dump\n", $d->dateFriday() ) ; I don't un