Re: reference to array of hashes in OOP

2007-07-12 Thread Inventor
On Jul 11, 9:04 pm, [EMAIL PROTECTED] (Paul Lalli) wrote: > If you have access to the server logs, check them. If not, add this > line to the top of your program, right under use strict and use > warnings: > > use CGI::Carp qw/fatalsToBrowser/; > > Paul Lalli Thanks Paul, it's nice to have error

Re: reference to array of hashes in OOP

2007-07-11 Thread Paul Lalli
On Jul 11, 3:33 pm, [EMAIL PROTECTED] (Inventor) wrote: > the program gets a run-time error, and I don't know which error > message it is because the module is used in a CGI program and I don't > know how to get at the error messages. If you have access to the server logs, check them. If not, ad

Re: reference to array of hashes in OOP

2007-07-11 Thread Inventor
On Jul 11, 5:09 pm, [EMAIL PROTECTED] (Mr. Shawn H. Corey) wrote: > Inventor wrote: > > Hi, > > > I would like to make a perl module with an array of hashes as the data > > structure, but I am having trouble with the references. I have > > declared the data structure in the constructor as follows:

Re: reference to array of hashes in OOP

2007-07-11 Thread Mr. Shawn H. Corey
Inventor wrote: Hi, I would like to make a perl module with an array of hashes as the data structure, but I am having trouble with the references. I have declared the data structure in the constructor as follows: my $self = ({}); my $self = []; and blessed it with: bless ($self

Re: Reference to Array

2003-07-15 Thread Rob Dixon
John W. Krahn wrote: > Peter Fleck wrote: > > > > I swear that some day I will understand references. In the > > meantime... > > > > I wrote some perl that used a hash where each value was a > > reference to an array. No problem. Here is the segment from > > within a foreach loop that populates the

Re: Reference to Array

2003-07-14 Thread John W. Krahn
Peter Fleck wrote: > > I swear that some day I will understand references. In the meantime... > > I wrote some perl that used a hash where each value was a reference > to an array. No problem. Here is the segment from within a foreach > loop that populates the hash. > > @storedates = ($s