[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ale] passing worksheet in perl
- Subject: [ale] passing worksheet in perl
- From: tim at cliftonfarm.org (Tim Watts)
- Date: Tue, 21 Dec 2010 15:31:24 -0500
- In-reply-to: <[email protected]>
- References: <[email protected]>
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?
>