From e69310dd9aa427384fe94c865e26c95600ea1aeb Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Fri, 11 Feb 2011 16:26:21 +0100 Subject: [PATCH] The argument of UCW::Temple::start() is no longer mandatory --- UCW/Temple.pm | 2 +- temple | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/UCW/Temple.pm b/UCW/Temple.pm index eded624..1a3dc97 100644 --- a/UCW/Temple.pm +++ b/UCW/Temple.pm @@ -149,7 +149,7 @@ sub parse_file($) { parse_string($text); } -sub start($) +sub start(;$) { $arguments = $_[0]; @cond = (1); diff --git a/temple b/temple index 370535f..2db9c30 100755 --- a/temple +++ b/temple @@ -16,7 +16,7 @@ if (defined $out) { open STDOUT, ">$out" or die "Cannot open $out: $!"; } if (!@ARGV) { push @ARGV, "-"; } -UCW::Temple::start(undef); +UCW::Temple::start(); foreach (@ARGV) { UCW::Temple::parse_file($_); } -- 2.39.5