> > That's exactly right. I meant that, if you were using an external file, > you only needed to replace the line > > my $fh = *DATA; > > with > > open my $fh, '<', 'myfile.txt' or die $!; > > which is pretty much what you have done. Unfortunately I made a mistake > and wrote > > while (<DATA>) { > > in the first loop, when it should be the same as the second loop which > reads > > while (<$fh>) { > > My apologies. > > Rob >
No apologies necessary, I'm just very happy that I could figure it out and resolve it without any help :) And so I'm a little bit wiser thanks to your help! Like someone said before, Rob you rock! Wernher