dotfiles/.vim/template/perl/snip-file-read.pl

3 lines
100 B
Perl
Raw Normal View History

2012-02-13 19:19:04 +00:00
open my $fh, '<', '{{_cursor_}}' or die "failed to open: $!";
my $content = do { local $/; <$fh> };