Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re^24: Addional "year" matching functionality in word matching script

by bms9nmh (Novice)
on Aug 18, 2016 at 17:01 UTC ( #1170011=note: print w/replies, xml ) Need Help??


in reply to Re^23: Addional "year" matching functionality in word matching script
in thread Addional "year" matching functionality in word matching script

Ok, i'm near the end of the script now. In this bit, I can see why the script prints out the line from $csv2, but I can't understand how it prints out the line from csv1. I can't see where it gets this information.
if ($count >= $desired) { print "$csv2\n"; ++$matched; } } print "$_\n\n" if $matched;
I can see the:
print "$_\n\n" if $matched;
bit somehow contains the information from csv1, but I can't see anything in the script which suggests why this would be?

Replies are listed 'Best First'.
Re^25: Addional "year" matching functionality in word matching script
by choroba (Archbishop) on Aug 18, 2016 at 19:35 UTC
    That's because
    while (<CSV1>) {

    in fact means

    while (defined( $_ = <CSV1> )) {
    ($q=q:Sq=~/;[c](.)(.)/;chr(-||-|5+lengthSq)`"S|oS2"`map{chr |+ord }map{substrSq`S_+|`|}3E|-|`7**2-3:)=~y+S|`+$1,++print+eval$q,q,a,

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (4)
As of 2022-05-23 17:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you prefer to work remotely?



    Results (82 votes). Check out past polls.

    Notices?