Open main menu

Biolecture.org β

Changes

DATA extraction from FASTA

342 bytes added, 21:38, 14 June 2016
no edit summary
<p>&nbsp;</p>
 
<p>4. Using &lt;STDIN&gt;, we can open the file in a perl program</p>
 
<p>Ex) print &quot;Please type the filename to extract: &quot;;</p>
 
<p>$DNAfilename = &lt;STDIN&gt;;</p>
 
<p>chomp $DNAfilename;</p>
 
<p>open(DNAFILE, $DNAfilename);</p>
 
<p>@FileData = &lt;DNAFILE&gt;;</p>
 
<p>close DNAFILE;</p>
 
<p>print @FileData;</p>
 
<p>exit;</p>
<h3><span style="background-color:rgb(245,245,255); color:rgb(0,0,0)">Reference</span></h3>