2009-08-29 17:59:02 +00:00

8 lines
210 B
Plaintext

# -*- mode: snippet -*-
# key: slurp
# contributor: Translated from TextMate Snippet
# name: Read File
# --
my \$${1:var};
{ local \$/ = undef; local *FILE; open FILE, "<${2:file}"; \$$1 = <FILE>; close FILE }