Re: [PATCH v4 2/2] gitweb: introduce localtime feature

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Kevin Cernekee wrote:
> On Sat, Mar 19, 2011 at 2:09 PM, Jakub Narebski <jnareb@xxxxxxxxx> wrote:

> > Â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
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]