Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: Foreach loop explanation

by SuicideJunkie (Vicar)
on Nov 23, 2012 at 21:30 UTC ( #1005319=note: print w/replies, xml ) Need Help??


in reply to Foreach loop explanation

Start with a small sample of data

Also, at line 16, try doing a print "I am now searching using '$item'\n";

If there are blank lines in your @nomi file, you'll get the entire @indirizzi file printed out, because every line in the file will match /^/;

One other note is that you are declaring $line and $item inconsistently. The first $line is never used, since there is a new $line declared for the inner loop.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1005319]
help
Chatterbox?
[Discipulus]: the very same topic was discussed in CB yesterday at lunch time
[Discipulus]: or can I ask for a module to do the back conversion from flame to txt?

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (5)
As of 2017-06-23 08:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How many monitors do you use while coding?















    Results (538 votes). Check out past polls.