Changes
From Biolecture.org
no edit summary
<p>\n : new line character. It designates the end of a line of text and the start of a new line</p>
<p>Variable : The place to store data</p>
<p>= : Assignment operator to give a value to the variable</p>
<h3>To open a file using perl program</h3>
<p><STDIN> : The link between perl program and file. We can get the values from a file using this standard input device</p>
<p>Ex) $DNAfilename = <STDIN>;</p>
<p>chomp $DNAfilename; : To remove the last new line character when you input your filename</p>
<p>open(DNAFILE, $DNAfilename); : to open a file, we have to make a link between perl program and the file using open function</p>
<p>$DNASeq = <DNAFILE>; : to read the open file - we can only read one line using scalar variable</p>
<p>while : to read the whole lines in a file</p>
<p>Ex) while( $DNASeq = <DNAFILE> )</p>
<p>close DNAFILE; : to close the open file</p>
<p>exit; : Instruction for end of the program</p>
<p> </p>
<p> </p>
<p> </p>
<p><a href="http://biolecture.org/index.php/KSH_0608_Bioinformatics_with_Bioperl" title="KSH 0608 Bioinformatics with Bioperl">KSH_0608 Bioinformatics with Bioperl</a></p>