Changes

From SME Server
Jump to navigationJump to search
53 bytes added ,  16:31, 28 December 2013
Line 53: Line 53:  
=== Basic syntax overview ===
 
=== Basic syntax overview ===
   −
A Perl script or program consists of one or more statements. These statements are simply written in the script in a straightforward fashion. There is no need to have a <code>main()</code> function or anything of that kind.
+
A Perl script or program consists of one or more statements. These statements are simply written in the script in a straightforward fashion. There is no need to have a <code>'''main()'''</code> function or anything of that kind.
    
Perl statements end in a semi-colon:
 
Perl statements end in a semi-colon:
   −
     print "Hello, world";
+
     [http://perldoc.perl.org/functions/print.html print] "Hello, world";
    
Comments start with a hash symbol and run to the end of the line
 
Comments start with a hash symbol and run to the end of the line

Navigation menu