Difference between revisions of "Basic Perl Grammar"

From Biolecture.org
imported>Seung-hoon Kim
(Created page with "<p># : program statement to improve understanding of the program. It is ignored when you run the program</p> <p>-w : It enables to print out error message when you make an error...")
(No difference)

Revision as of 21:11, 14 June 2016

# : program statement to improve understanding of the program. It is ignored when you run the program

-w : It enables to print out error message when you make an error.

print : It prints out the following character string, number to your monitor

\n : new line character. It designates the end of a line of text and the start of a new line

exit : Instruction for end of the program

Variable : The place to store data

 1. $ : Scalar, to store specific number or character string

 2. @ : Array, to store several values in sequence

 3. % : Associative array, dataset without sequence

= : Assignment operator to give a value to the variable