in reply to Passing Excel Objects in Perl
my ( $worksheet,@pageid,@plotname ) = @_;
... I do not think that word means what you think it means...
You may want to dump @pageid and @plotname, and then look at perlref.
use Data::Dumper; warn Dumper(\@pageid, \@plotname);
You are passing a scalar and two lists / arrays to your subroutine. Perl will flatten these and you will end up with the first array (@pageid) greedily eating all but the first parameter. To solve this, pass (and receive) the arrays by reference.
--MidLifeXis
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Passing Excel Objects in Perl
by Anonymous Monk on Jul 30, 2008 at 11:29 UTC | |
by MidLifeXis (Monsignor) on Jul 30, 2008 at 11:49 UTC |