in reply to Lo, for i am blind

jcpunk,
elsif ($on_off eq "off") &Off(); else {
You are missing the open and close curly brace in the elsif.

Additionally:

  • You shouldn't use backticks in a void context `` - use system instead
  • It is also considered bad form to call a sub with & and ()

    Cheers - L~R