OO Perl question

2006-06-08 Thread Graeme McLaren
Hi all, this class that I have written lists the contents of a log table when the $log-view method is invoked. There is some hardcoded SQL in this method and all I do is pass it a number which then looks up the relevant records. This really isn't a reusable class as far as I understand it

Re: OO Perl question

2006-06-08 Thread Anthony Ettinger
On 6/8/06, Graeme McLaren [EMAIL PROTECTED] wrote: Hi all, this class that I have written lists the contents of a log table when the $log-view method is invoked. There is some hardcoded SQL in this method and all I do is pass it a number which then looks up the relevant records. This really

Re: OO Perl question

2006-06-08 Thread Graeme McLaren
is required. So how or where should I instantiate it? Cheers, G :) From: Anthony Ettinger [EMAIL PROTECTED] To: Graeme McLaren [EMAIL PROTECTED] CC: beginners@perl.org Subject: Re: OO Perl question Date: Thu, 8 Jun 2006 00:50:07 -0700 MIME-Version: 1.0 Received: from lists.develooper.com

Re: OO Perl question

2006-06-08 Thread Anthony Ettinger
On 6/8/06, Graeme McLaren [EMAIL PROTECTED] wrote: Hi Anthony, good idea about overriding the table names. I had a feeling there would be a conf file somewhere. As I am outputting the results of the SELECT to an HTML::Template I am already using a Conf file which is another class. This leads

Re: OO Perl question

2006-06-08 Thread Anthony Ettinger
my ($option) = $_ =~ s/(.*?)#/; #skip inline comments should be m//, not s// On 6/8/06, Anthony Ettinger [EMAIL PROTECTED] wrote: On 6/8/06, Graeme McLaren [EMAIL PROTECTED] wrote: Hi Anthony, good idea about overriding the table names. I had a feeling there would be a conf file