Changes
no edit summary
<p>A1. the perl code</p>
<pblockquote><textarea cols="30" name="code" rows="20"p>use warnings;<br />use strict;</p>
<p>open my $fh, '>', 'fasta.txt';</p>
<p>print "enter your fasta file name\n";<br />my $seqname = <>;<br />print $fh '>'. "$seqname";</p>
<p>print "enter your fasta sequence(to end inputing sequence, hit 0 and enter)\n";<br />while (my $line = <STDIN>) {<br /> last if $line =~ '^0$';<br /> print $fh $line;<br />}</p>
<p>close $fh;</p>
<p>print "done\n";</textareap></blockquote> <p> </p> <p>download the code <a href="/ckfinder/userfiles/files/fasta_code.txt">/ckfinder/userfiles/files/fasta_code.txt</a></p> <p>the .pl format can't upload, so I change pl to txt. when you open the file, you have to save as .pl</p>
<p>A2. Running in consol</p>
<p>A3. result file</p>
<p><textarea cols="20" rows="20"blockquote>>Your_first_seq<br />ATATATATATATATATAATATATATATATATATAATATATATATATATATAATATATATATATATATA<br />ATATATATATATATATAATATATATATATATATAATATATATATATATATAATATATATATATATATA<br />ATATATATATATATATAATATATATATATATATAATATATATATATATATAATATATATATATATATA<br />
ATATATATATATATATAATATATATATATATATAATATATATATATATATAATATATATATATATATA
<p>the download file name is : <a href="/ckfinder/userfiles/files/fasta.txt (format is ">/ckfinder/userfiles/files/fasta.txt)</a></p>