Changes
โโChangshin Park Perl programming homework: new section
You will probably want to read the [[Help:Contents|help pages]].
Again, welcome and have fun! [[User:S|S]] 08:25, 12 September 2015 (KST)
== Changshin Park Perl programming homework ==
<p>------------------------------------------------------------------------------------------------------</p>
<p>As the first homework, you are asked to<br />
write a simple program to open and write a FASTA file with the content<br />
below:<br />
<br />
>Your_first_seq<br />
ATATATATATATATATAATATATATATATATATAATATATATATATATATAATATATATATATATATA<br />
ATATATATATATATATAATATATATATATATATAATATATATATATATATAATATATATATATATATA<br />
ATATATATATATATATAATATATATATATATATAATATATATATATATATAATATATATATATATATA<br />
ATATATATATATATATAATATATATATATATATAATATATATATATATATAATATATATATATATATA</p>
<p>------------------------------------------------------------------------------------------------------</p>
<p>I made a code simply gets input from user</p>
<p>i am not sure i understood the homework corretly.</p>
<p>This is the code:</p>
<p>#!/usr/bin/perl<br />
use strict;<br />
use warnings;</p>
<p>print ">Input your FASTA file\n";<br />
my $fasta = <STDIN>;<br />
#chomp $fasta;<br />
chomp($fasta = <STDIN>);</p>
<p><br />
print "$fasta \n";</p>
<p> </p>
<p>and This is the result:</p>
<p><img alt="" src="/ckfinder/userfiles/images/Perlfasta.JPG" style="height:128px; width:549px" /></p>
<p> </p>
<p>Thank you.</p>