[ale] passing worksheet in perl
Geoffrey Myers
lists at serioustechnology.com
Tue Dec 21 15:57:59 EST 2010
Tim Watts wrote:
> Looks right to me. Maybe it's complaining about the param list?
I think you're on to something, seems I might have been barking up the
wrong tree. Thanks.
>
>
> On Tue, 2010-12-21 at 11:27 -0500, Geoffrey Myers wrote:
>> 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?
>>
>
>
> _______________________________________________
> Ale mailing list
> Ale at ale.org
> http://mail.ale.org/mailman/listinfo/ale
> See JOBS, ANNOUNCE and SCHOOLS lists at
> http://mail.ale.org/mailman/listinfo
--
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
More information about the Ale
mailing list