Public bug reported:

Description:    Ubuntu precise (development branch)
Release:        12.04

Package: fcheck-2.7.59-17

I upgraded a pretty stock Ubuntu 11.11 to 12.04, and now I'm getting
cron emails complaining:

Use of assignment to $[ is deprecated at /usr/sbin/fcheck line 1366.

This is due to new features in Perl 5.12 and is true:
[...]
   1357 
###############################################################################
   1358 # $x=&ctime($y);                                                        
      #
   1359 # This support routine will return the converted time to human readable 
format#
   1360 # Basically, I'm trying to get away from any functions that may not be 
in any #
   1361 # very minimal PERL distribution.                                       
      #
   1362 
###############################################################################
   1363 sub ctime
   1364     {
   1365     local($time) = @_;
> 1366     local($[) = 0;
   1367     local($sec, $min, $hour, $mday, $mon, $year, $wday);
[...]

Hints:
http://perldoc.perl.org/perl5120delta.html#Deprecations
http://www.effectiveperlprogramming.com/blog/463

I'm a little confused as to why it's doing that, since zero-based arrays
are the default anyway.

** Affects: fcheck (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/964429

Title:
  Use of assignment to $[ is deprecated at /usr/sbin/fcheck line 1366.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/fcheck/+bug/964429/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to