cammac has asked for the wisdom of the Perl Monks concerning the following question:
I use struct T_Row in two different modules, but I get an error saying that "function 'new' already defined in package T_Row at CreateXML2.pm line 80" which is where the structure is defined. CreateXML and CreateXML2 both use the T_Row struct and I have "use CreateXML" and "use CreateXML2" in the main program.
example of how it is defined and used in the two CreateXML programs:struct T_Row => {t_rownum=> '$', t_SEARCH_COL => '$' , t_IMAGE=> '$' } ; my @t_list = qw(t_SEARCH_COL t_IMAGE) ; my %t_hash = ( "SEARCH_COL" , SEARCH_COL, "IMAGE" , IMAGE ); $extractedRow = T_Row->new (t_rownum => $row) ; # begin next row $extractedRow->t_SEARCH_COL ( "$scol" );
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: sharing structures
by dsheroh (Monsignor) on Apr 01, 2008 at 16:36 UTC | |
|
Re: sharing structures
by Narveson (Chaplain) on Apr 01, 2008 at 16:36 UTC |