Running option --variables crashes on line 436
I ran across this while trying to use --variables. Using the --status option completes successfully.
$ ./mysar.pl --user mysar --pass secret --variables
* mysar v0.6-alpha - Gerardo Narvaja
* Developed at Pythian Inc. http://
* Use "perldoc mysar.pl" for usage information
*** Sampled at: 2009-10-19 18:18:07
Will retrieve all variables
*** Retrieving configuration variables from the DB
Undefined subroutine &main::execute called at ./mysar.pl line 436 (#1)
(F) The subroutine indicated hasn't been defined, or if it was, it has
since been undefined.
Uncaught exception from user code:
Undefined subroutine &main::execute called at ./mysar.pl line 436.
at ./mysar.pl line 436
## Here is the user that was created on MySQL.
$ mysql -B --skip-column-names -e'show grants for mysar'
GRANT CREATE, PROCESS ON *.* TO 'mysar'@'%' IDENTIFIED BY PASSWORD '*...'
GRANT ALL PRIVILEGES ON `mysar`.* TO 'mysar'@'%'