Re: example from 'writing perl modules'... quesiton

2008-06-16 Thread Jenda Krynicky
From: Rob Dixon <[EMAIL PROTECTED]> > It is common practice in most languages to pass an additional implicit > parameter > to method calls. Class methods like BOA::Logger2->new will have the class name > passed as the first parameter, whereas object methods like $logger->level will > have the obje

Re: example from 'writing perl modules'... quesiton

2008-06-15 Thread Rob Dixon
Richard Lee wrote: > Rob Dixon wrote: >> Richard Lee wrote: >> >>> I was just testing out the code from the book 'writing perl modules for >>> cpan' and I am trying out below module and getting compiled error. >>> I cannot/donot see what is wrong w/ the code. >>> >>> can anyone see? >>> >>> use

Re: example from 'writing perl modules'... quesiton

2008-06-15 Thread Richard Lee
Rob Dixon wrote: Richard Lee wrote: I was just testing out the code from the book 'writing perl modules for cpan' and I am trying out below module and getting compiled error. I cannot/donot see what is wrong w/ the code. can anyone see? use strict; use warnings; package BOA::Logger2; use

Re: example from 'writing perl modules'... quesiton

2008-06-15 Thread Richard Lee
Rob Dixon wrote: Richard Lee wrote: I was just testing out the code from the book 'writing perl modules for cpan' and I am trying out below module and getting compiled error. I cannot/donot see what is wrong w/ the code. can anyone see? use strict; use warnings; package BOA::Logger2; use

Re: example from 'writing perl modules'... quesiton

2008-06-15 Thread yitzle
On line 58... Wait! You only got 47 lines. How does line 62 have an error? The last subroutine starts off: sub { Giving it a name ought to fix it all up, I think. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

Re: example from 'writing perl modules'... quesiton

2008-06-15 Thread Rob Dixon
Richard Lee wrote: > I was just testing out the code from the book 'writing perl modules for > cpan' and I am trying out below module and getting compiled error. > I cannot/donot see what is wrong w/ the code. > > can anyone see? > > use strict; > use warnings; > > > package BOA::Logger2; > us

example from 'writing perl modules'... quesiton

2008-06-15 Thread Richard Lee
I was just testing out the code from the book 'writing perl modules for cpan' and I am trying out below module and getting compiled error. I cannot/donot see what is wrong w/ the code. can anyone see? use strict; use warnings; package BOA::Logger2; use Carp qw(croak); use IO::File; #construc