note
ignatz
For me this
<code>
my $contents = do { local (@ARGV, $/) = $filename; <> };</code>
in production code is a real pain.
<p>
This, on the other hand
<code># Slurp file
my $contents = do { local (@ARGV, $/) = $filename; <> };</code>
is just fine.
<p>
Very cool, BTW.
<p>
ADDED: --[ignatz|/me] for not noticing [Aristotle]'s post saying the same thing.
<pre style="font-family: terminal, courier, courier new, monospaced;">
()-()
\"/
`
</pre>
204874
204874