On Thu, Dec 19, 2002 at 02:32:15PM -0500, Paul Kraus wrote: > When I run this code > > &buildexcel("Age"); > ... > sub buildexcel{ > ... > my $sheet=$book->worksheets('AgeRaw') if ($_[0] eq "Age"); > my $sheet=$book->worksheets('ReceiptsRaw') if ($_[0] eq "Cash");
Get rid of the "my" in these statements. This sort of construct causes a strange interaction between the compile time and runtime parts of perl. > $sheet->activate(); > ... > } > > I get this error > ... > Can't call method "activate" on an undefined value at armonth.pl line 92 > <AGE> line 17904. -- Paul Johnson - [EMAIL PROTECTED] http://www.pjcj.net -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]