From c315a1277dfc567b34a33cc9d687e10414939eac Mon Sep 17 00:00:00 2001 From: Angel Ortega Date: Thu, 9 Oct 2008 13:12:24 +0200 Subject: [PATCH] If used without an argument, the 'env' templates returns the variable names separated by colons. --- Artemus.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Artemus.pm b/Artemus.pm index 9e37c3b..e364465 100644 --- a/Artemus.pm +++ b/Artemus.pm @@ -518,7 +518,7 @@ sub new return $ret; }; - $a->{funcs}->{env} = sub { $ENV{$_[0]} || ''; }; + $a->{funcs}->{env} = sub { scalar(@_) ? ($ENV{$_[0]} || '') : join(':', keys(%ENV)); }; $a->{_abort} = 0; $a->{_unresolved} = []; -- 2.11.4.GIT