webmin edit_mon.cgi line 316

Yeah, so I upgraded webmin to 1.590 and got this weird error when trying to edit a “System and Server Status” monitor.

Error - Perl execution failed

Can't use global $_ in "my" at /usr/libexec/webmin/status/edit_mon.cgi line 316, near "($_"

After Googling around I found only one possible solution. It worked.

Like the man said, there’s no substitute for going to the file in question (/usr/libexec/webmin/status/edit_mon.cgi) and poking around.

The ultimate fix was to change the infamous line 316 from:

my ($_, $nv) = split(/=/, $nice_values[$i], 2);


my ($junk, $nv) = split(/=/, $nice_values[$i], 2);

Sometimes the best things in life are free.

Issue was first reported on 4 July (Happy holiday!). Bug was closed on 5 August. One hopes a patch is in the offing.