title: How to use else single line statement in Perl ?
body: <p>I am beginner to Perl , I have trying to read the if...else statement.
  I tried if..else statement with curly braces.</p>
  
  <pre><code>if ( 1 ) { 
     print "True\n";  } 
  else { 
   print "False\n" ; } 
  </code></pre>
  
  <p>It working properly , then I searched in net how to use single line if statement without using curly braces, they provided same code.</p>
  
  <pre><code>     print "True\n" if (1 ) ;
  </code></pre>
  
  <p>I tried to use the else statement with that sample code </p>
  
  <pre><code>  print "false\n" else ;
  </code></pre>
  
  <p>But I got error message .Can anybody explain how to use the single line else statement with if statement in perl.</p>
  
  <p>Thanks in advance.</p>