Re: perl updates

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

 



On Wed, Feb 28, 2018 at 12:31:55PM -0500, Jeffrey Ross wrote:
> I got a bunch of perl updates that came down today and they seem to have
> caused some problems with exim's script exiqsumm
> 
> Use of uninitialized value $ARGV[0] in string eq at /usr/sbin/exiqsumm line 48.
> 
> I'm using the following command which kicks the error out "/usr/bin/mailq |
> /usr/sbin/exiqsumm".
> 
> the line in /usr/sbin/exiqsumm is;
> (lines 48 through 53)
> 
> if ($ARGV[0] eq '--version') {
>     print basename($0) . ": $0\n",
>         "build: 4.90_1\n",
>         "perl(runtime): $]\n";
>         exit 0;
> }
> 
> I'm guessing the error is a warning since the command still runs as
> expected.

It's a warning. It seems unlikely that a minor change to a perl version would
cause a change there. The warning is happening because its testing whether
the first command-line argument is equal to  '--version', and there is no
first argument ($ARGV[0]).

Has the exiqsumm script also been updated recently? Its possible that a
newer release has enabled warnings (they're not on by default in perl),
either by adding '-w' to the #!/usr/bin/perl first line, or by adding
"use warnings" somewhere near the top of the script.


-- 
"I used to be with it, but then they changed what ‘it’ was, and now what
I’m with isn’t it. And what’s ‘it’ seems weird and scary to me."
  -- Grandpa Simpson
(It will happen to you too.)
_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx



[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux