Hi PerlMonks I am a newbie in perl .. I am using nested while loops to open two files for searching data as below
open(file_one,"ABC"); while(my $line = <file_one>) { open(file_two,"CDE"); while(my $line2=<file_two>) { print "line : $line line2 : $line2 \n"; } close(file_two); }
The problem is nothing is printed against line : <blank> line2: <somevalue>
In reply to Nested While loop not working by Manisha
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |