title: Perl if not working?
body: <p>Here is my code:</p>
  
  <pre>#!/usr/bin/env perl
  
  sub start
  {
      ...
  }
  
  sub stop
  {
      ...
  }
  
  if (defined $ARGV[0])
  {
      if ($ARGV[0]=='start') {start}
      elsif ($ARGV[0]=='stop') {stop}
      else {die "Unrecognized command: $ARGV[0]"}
  }</pre>
  
  <p>Whatever I do though, it always executes <code>&amp;start</code>. Am I doing something wrong?</p>
  
  <p>I'm using Linux Mint 10 and Perl 5.10.1.</p>