[ale] passing worksheet in perl
Tim Watts
tim at cliftonfarm.org
Tue Dec 21 15:31:24 EST 2010
Looks right to me. Maybe it's complaining about the param list?
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?
>
More information about the Ale
mailing list