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

Re: apt-get trouble



On Thu, May 10, 2001 at 12:25:12AM -0400, Joey Hess wrote:
>Stephen E. Hargrove wrote:
>> I'm have a heck of a time with apt-get following a manual install of
>> perl-5.6.1.  [...]

>> debconf: Perl may be unconfigured (Can't modify goto in lvalue subroutine
>> return at /usr/share/perl5/Debconf/Base.pm line 24, near "}"
>
>You may manage to shut perl up by removing the ": lvalue" in the
>abovementioned file, I dunno.
>
>Does anyone on debian-perl know if perl 5.6.1 has added this weird lvalue
>goto diagnostic? If so, I should probably change debconf to not use lvalues
>in my AUTOLOADs..

It would appear that 5.6.1 does behave a little differently to 5.6.0 in
respect to lvalued AUTOLOAD.  Consider:

  my $foo = 42;
  sub foo :lvalue { $foo }
  sub AUTOLOAD :lvalue { goto &foo }
  bar() = 4711 if $ARGV[0] eq 'run-time';

With 5.6.0, this compiles and runs, unless you give an argument of
`run-time' in which case it croaks with:

  Can't modify non-lvalue subroutine call at /tmp/goto line 4.

5.6.1 on the other hand dies at *complile-time* (ie.  irregardless of
the argument) with:

  Can't modify goto in lvalue subroutine return at /tmp/goto line 3, near "&foo }"
  Execution of /tmp/goto aborted due to compilation errors.

Regards,
-- 
Brendan O'Dea                                        bod@compusol.com.au
Compusol Pty. Limited                  (NSW, Australia)  +61 2 9810 3633



Reply to: