Re: [PATCH v4 2/2] gitweb: introduce localtime feature
- From
Jakub Narebski <jnareb@gmail.com>
- Date
- Mar 19, 2011, 21:41 UTC
- Message-ID
- <201103192241.13589.jnareb@gmail.com>
- In-Reply-To
- <AANLkTikw7_9Q0MgVZZxX_dXvcxoXfx5VEmRQkVH_k1YC@mail.gmail.com>
Kevin Cernekee wrote:
> On Sat, Mar 19, 2011 at 2:09 PM, Jakub Narebski <jnareb@gmail.com> wrote:
Show 5 quoted lines
> > sub timestamp_html {
> > my %date = %{ shift };
> > my %opts = @_;
>
> This did not work for me. It interprets "shift" as a variable name.Damn autoquoting ('shift' is taken as bareword here).Either
my %date = %{ shift @_ };or
my %date = %{ +shift };works. Not that it matter much...
-- Jakub Narebski Poland