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

3 lines
100 B
Perl

open my $fh, '<', '{{_cursor_}}' or die "failed to open: $!";
my $content = do { local $/; <$fh> };