http://qs1969.pair.com?node_id=204896


in reply to Cheap idioms

For me this
my $contents = do { local (@ARGV, $/) = $filename; <> };
in production code is a real pain.

This, on the other hand

# Slurp file my $contents = do { local (@ARGV, $/) = $filename; <> };
is just fine.

Very cool, BTW.

ADDED: --/me for not noticing Aristotle's post saying the same thing.

()-()
 \"/
  `