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: Re: [EverGreen1] Issue with Array Initialization?: Edit Log



BillKSmith
Veteran

Aug 12, 2016, 1:24 PM


Views: 4061
Re: [EverGreen1] Issue with Array Initialization?

You have three problems.

In your code, you have ($inc) rather than [$inc].

You increment $inc before the print.

You must add a newline to your print.


Code
    $CurrentWave[$inc] = $Wave; 
print $CurrentWave[$inc], "\n";
$inc = $inc + 1;
}

Good Luck,
Bill

(This post was edited by FishMonger on Aug 12, 2016, 1:24 PM)


Edit Log:
Post edited by FishMonger (Veteran) on Aug 12, 2016, 1:24 PM: typo correction


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

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