in reply to Re^6: Addional "year" matching functionality in word matching script
in thread Addional "year" matching functionality in word matching script
This second loop creates its own $title variable:
for my $title { print $title , " => ", find_year($title), "\n"; }
What you want instead is to integrate that call to find_year into your while loop:
while( <...>) { ... my ($title) = ...; print "Have title '$title'\n"; print $title , " => ", find_year($title), "\n"; };
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^8: Addional "year" matching functionality in word matching script
by bms9nmh (Novice) on Jun 28, 2016 at 14:40 UTC | |
by Corion (Patriarch) on Jun 28, 2016 at 14:49 UTC | |
by bms9nmh (Novice) on Jun 28, 2016 at 15:22 UTC | |
by Cow1337killr (Monk) on Jun 28, 2016 at 16:16 UTC | |
by bms9nmh (Novice) on Jun 28, 2016 at 16:47 UTC | |
| |
by bms9nmh (Novice) on Jun 28, 2016 at 14:50 UTC |