From: Martin Mares Date: Fri, 11 Feb 2011 15:26:21 +0000 (+0100) Subject: The argument of UCW::Temple::start() is no longer mandatory X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=e69310dd9aa427384fe94c865e26c95600ea1aeb;p=temple.git The argument of UCW::Temple::start() is no longer mandatory --- 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($_); }