Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re^2: Nested loops?

by Speed_Freak (Sexton)
on Aug 30, 2017 at 18:53 UTC ( [id://1198346]=note: print w/replies, xml ) Need Help??


in reply to Re: Nested loops?
in thread Nested loops?

Thanks for the response! I was looking into how %seen works and realized where my code was wrong

I added a line above the loop: my %table2a = keys %table2 and then changed my if statement: if (exists ($table2a {$x}))

Now it's working just as expected. You'll also notice that the parentheses in the if statement changed as well.

Replies are listed 'Best First'.
Re^3: Nested loops?
by zakame (Pilgrim) on Aug 31, 2017 at 04:37 UTC

    Happy it helped :) Enjoy PerlMonks!

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1198346]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (4)
As of 2024-03-29 16:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found