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: [rushadrena] A file parsing and 2D array/matrix problem.: Edit Log



Laurent_R
Veteran / Moderator

Sep 10, 2012, 10:02 AM


Views: 2449
Re: [rushadrena] A file parsing and 2D array/matrix problem.

Quite obviously, there some values of $i and/or $j that you are using for which @file is not defined.

Check how you filled the @file array (is it from 0 to 9, or perhaps from 1 to 10)?

I don't want to check in the code you posted, because you posted it quite a while ago and I assume it has changed quite a bit since.

Edit: I had not seen the answer by Chris when I typed the above. Maybe it is 0 to 10 or 1 to 11, after all. You should probably filter out the extra entry as soon as you read your directory.


(This post was edited by Laurent_R on Sep 10, 2012, 10:18 AM)


Edit Log:
Post edited by Laurent_R (Veteran) on Sep 10, 2012, 10:18 AM


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

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