title: How can I get the name of the input file in a Perl one-liner?
body: <h3>File <em>monday.csv</em></h3>
  <pre class="lang-none prettyprint-override"><code>223.22;1256.4
  227.08;1244.8
  228.08;1244.7
  229.13;1255.0
  227.89;1243.2
  224.77;1277.8
  </code></pre>
  <h3>File <em>tuesday.csv</em></h3>
  <pre class="lang-none prettyprint-override"><code>227.02;1266.3
  227.09;1234.9
  225.18;1244.7
  224.13;1255.3
  228.59;1263.2
  224.70;1247.6
  </code></pre>
  <p>This Perl one-liner gives me the row with the highest value in the second column from the rows where in the first column the first three digits are 227 or 226 from the file &quot;monday.csv&quot;:</p>
  <pre class="lang-none prettyprint-override"><code>perl -F\; -ane '$hash{$_} = $F[1] if /22[78]/; END{ print and exit for sort{ $hash{$b} &amp;lt;=&gt; $hash{$a} } keys %hash }' monday.csv
  </code></pre>
  <p>This Perl one-liner gives me the row with the highest value in the second column from the rows where in the first column the first 3 digits are 227 or 226 from all *day.csv files:</p>
  <pre class="lang-none prettyprint-override"><code>perl -F\; -ane '$hash{$_} = $F[1] if /22[78]/; END{ print and exit for sort{ $hash{$b} &amp;lt;=&gt; $hash{$a} } keys %hash }' *day.csv
  </code></pre>
  <p>How could I rewrite this one-liner to get an output like</p>
  <blockquote>
  <p>filename : &quot;row with the highest value in the second column from the rows where in the first column the first 3 digits are 227 or 226 from the file 'filename.csv'&quot;</p>
  </blockquote>
  <p>for each <code>*day.csv</code> file?</p>