I Like Zaxo

Output after running and using Data::Dumper is

$VAR1 = { 'Place de la Gare - Bergerac' => 1, 'Place De La Gare - Angers' => 0, 'Place Thiers - Nancy' => 0, 'Place De La Gare - Rennes' => 1, 'Place de la Gare' => 1, 'Place De La Gare - Nevers' => 0, 'Place De La Gare - Grenoble' => 0, 'Place De La Gare 1 - Grenoble' => 0, 'Place De La Gare - Angers' => 0, 'Place de la Gare - Libourne' => 1, 'Place de la Gare - Moutiers' => 1, 'Place Mohammed V - Oujda' => 0, 'Place De La Gare' => 0, 'Place Du Chateau - Galerie Marchande Du Rer' => 0, 'Place de la Gare - Quimper' => 1, 'Place De La Gare - Nevers' => 0, 'Place De La Gare - Rennes' => 1 };

I would have though that the Rennes match would have a score of 2, it looks to me that its case sensitive (as re-running with the input as 'Place De La Gare' instead of 'Place de la Gare' scores as i would expect. I dont however get why this is seeing as the regex is using -i ?


In reply to Re^2: Guessing/Ordering Partial Data by ropey
in thread Guessing/Ordering Partial Data by ropey

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.