CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Beginner:
Not an ARRAY reference at GDS2.pm

 



lreni
New User

May 6, 2013, 11:42 AM

Post #1 of 2 (277 views)
Not an ARRAY reference at GDS2.pm Can't Post

Please excuse my ignorance with Perl. Iím trying to pass an array to GDS2.pm and getting the following error:



Not an ARRAY reference at GDS2.pm line 1694.



Hereís a snippet of my code:



my @xy_new;

foreach my $viac (@xy) {

my $vdiff = $viac-$viad;

push(@xy_new,$vdiff);

}

if ($bndry) {

$outGds -> printBoundary (

-layer=>\$targetV1L,

-dataType=>\$targetV1D,

-xyInt=>\@xy_new,

);



Where am I going wrong?


lreni
New User

May 6, 2013, 1:45 PM

Post #2 of 2 (273 views)
Re: [lreni] Not an ARRAY reference at GDS2.pm [In reply to] Can't Post

Never mind. Found the problem. I was referncing other variables which caused the problem. Should have been written this way:

if ($bndry) {
$outGds -> printBoundary (
-layer=>$targetV1L,
-dataType=>$targetV1D,
-xyInt=>\@xy_new,
);


 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives