You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ mysqltuner.pl > /dev/null
Use of uninitialized value $opt{"prettyicon"} in numeric ne (!=) at
/usr/local/sbin/mysqltuner.pl line 236 (#1)
(W uninitialized) An undefined value was used as if it were already
defined. It was interpreted as a "" or a 0, but maybe it was a mistake.
To suppress this warning assign a defined value to your variables.
To help you figure out what was undefined, perl will try to tell you
the name of the variable (if any) that was undefined. In some cases
it cannot do this, so it also tells you what operation you used the
undefined value in. Note, however, that perl optimizes your program
and the operation displayed in the warning may not necessarily appear
literally in your program. For example, "that $foo" is usually
optimized into "that " . $foo, and the warning will refer to the
concatenation (.
Version 2.6.0 (e.g. commit 1b9c8e5) doesn't have this warning.
The option was named "noprettyicon" on line 121 and set to 0.
Then later in lines 236 and 289 it's referenced as "prettyicon". I don't want to submit a pull request because I'm not sure what the desired default value or option name was supposed to be.
Activity
ckujau commentedon Nov 12, 2024
Happens here too, with Perl
5.36.0-7+deb12u1:Version 2.6.0 (e.g. commit 1b9c8e5) doesn't have this warning.
ckujau commentedon Nov 12, 2024
Gah, I should've bisected before commenting:
Steve8291 commentedon Nov 13, 2024
The option was named "noprettyicon" on line 121 and set to 0.
Then later in lines 236 and 289 it's referenced as "prettyicon". I don't want to submit a pull request because I'm not sure what the desired default value or option name was supposed to be.
stevefxp1 commentedon Nov 13, 2024
Steve8291 commentedon Nov 14, 2024
@stevefxp1 No it hasn't been updated yet. Although the error won't hurt anything. I just submitted a pull request to fix it.
Fixing major#807 major#808 major#806
Merge pull request #809 from jmrenouard/master
jmrenouard commentedon Dec 22, 2024
Thanks for submitting, this issue seems to be closed now
Feel free to reopen if needed