bug-texinfo
[Top][All Lists]
Advanced

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

Re: Texinfo 6.2 released


From: Gavin Smith
Subject: Re: Texinfo 6.2 released
Date: Sat, 10 Sep 2016 15:23:05 +0100

On 10 September 2016 at 15:12, Norbert Preining <address@hidden> wrote:
> Hi Gavin,
>
> On Sat, 10 Sep 2016, Gavin Smith wrote:
>> We have released version 6.2 of Texinfo, the GNU documentation system.
>
> On Debian I get:
> syntax error at ../../Pod-Simple-Texinfo/../tp/Texinfo/Common.pm line 1208, 
> near ");"
> Global symbol "$year" requires explicit package name (did you forget to 
> declare "my $year"?) at ../../Pod-Simple-Texinfo/../tp/Texinfo/Common.pm line 
> 1209.
> Global symbol "$year" requires explicit package name (did you forget to 
> declare "my $year"?) at ../../Pod-Simple-Texinfo/../tp/Texinfo/Common.pm line 
> 1209.
> BEGIN not safe after errors--compilation aborted at 
> ../../Pod-Simple-Texinfo/../tp/Texinfo/Common.pm line 1731.

I do not understand this. I quote the entire function that the line
that is mentioned is in:

sub expand_today($)
{
  my $self = shift;
  if ($self->get_conf('TEST')) {
    return {'text' => 'a sunny day'};
  }
  my($sec, $min, $hour, $mday, $mon, $year, $wday, $yday, $isdst)
   = localtime(time);
  $year += ($year < 70) ? 2000 : 1900;
  return $self->gdt('{month} {day}, {year}',
          { 'month' => $self->gdt($MONTH_NAMES[$mon]),
            'day' => $mday, 'year' => $year });
}

As you can see, $year is declared here with "my". Maybe it's due to
different perl versions? When I run "perl --version" I get

This is perl 5, version 18, subversion 1 (v5.18.1) built for
i486-linux-thread-multi

Another idea is maybe there is something special about variables called "$year"?



reply via email to

[Prev in Thread] Current Thread [Next in Thread]