commit 2dd580f5367bdd169dc8844522f13eb7236c4ded
parent 1474ad501d063c03ba63a38f5818099c4496a238
Author: Alex Balgavy <a.balgavy@gmail.com>
Date: Tue, 18 Feb 2020 18:02:50 +0100
vim: ultisnips perl snippet fix
Former-commit-id: 3717b8ddeec589417257edcba8fc10b7955a6731
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/vim/ultisnips/perl.snippets b/vim/ultisnips/perl.snippets
@@ -1,7 +1,7 @@
snippet readfile "Read from a file" b
open(${1:handle}, "<${2:filename}") or die "Couldn't open the file $2, \$!";
-while($1) {
+while(<$1>) {
$0
}
endsnippet