[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ale] passing worksheet in perl
- Subject: [ale] passing worksheet in perl
- From: lists at serioustechnology.com (Geoffrey Myers)
- Date: Tue, 21 Dec 2010 11:27:05 -0500
So I have the following in a perl script (spreadsheet):
my $wsException = $wb->add_worksheet('Exception');
This is defined in a subroutine. I want to call write_row() from
another subroutine taht is called by this subroutine. If I do this:
mysub($wsException);
And then:
sub mysub
{
my $wsExecp = $_[0];
$wsExecp->write_row(....);
}
I get: Can't call method "write_row" on an undefined value
I've tried to send a reference and dereference that, but same error. I
don't know if my syntax for dereferencing is wrong or what.
Suggestions?
--
Until later, Geoffrey
"I predict future happiness for America if they can prevent
the government from wasting the labors of the people under
the pretense of taking care of them."
- Thomas Jefferson