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: Intermediate: Re: [efoss] hash of hashes disappears: Edit Log



efoss
Novice

Jul 22, 2009, 3:37 PM


Views: 4532
Re: [efoss] hash of hashes disappears

OK, this is now getting really bizarre. I fixed up a bunch of potential screw ups with "foreach" loops, though I'm not convinced that I made a mistake there. Then I tried again - it still doesn't work. Then I filled the variable I've been having trouble with and commented out all the rest of the code until the final line, which says:

print "done!\n";

I put a block before that line and run it and ALL of my variables are gone. Then before the commented out block of code, I put in this line:

print "check now\n";

I put a block before that and now all of my variables are there and filled correctly and everything is fine. So somehow printing "check now" and jumping over a big block of commented out code has led me to lose all of my variables. Removing the commented out code fixes the problem - then when I put a block before the final "done" line, all the variables are there.

So jumping over a block of commented out code makes my variables vanish. That's pretty messed up.


(This post was edited by efoss on Jul 22, 2009, 3:40 PM)


Edit Log:
Post edited by efoss (Novice) on Jul 22, 2009, 3:40 PM


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

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