Skip to content

Instantly share code, notes, and snippets.

@usbmonkey
Created July 17, 2013 14:53
Show Gist options
  • Save usbmonkey/6021303 to your computer and use it in GitHub Desktop.
Save usbmonkey/6021303 to your computer and use it in GitHub Desktop.
$text = do {local(@ARGV, $/) = $file ; <>; }; [or] sub read_file { local(@ARGV, $/) = @_ ; <>; }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment