Difference between revisions of "What is Perl?"

From Biolecture.org
imported>Mi Rae Yeo
imported>Mi Rae Yeo
 
Line 47: Line 47:
 
<p><strong>References</strong></p>
 
<p><strong>References</strong></p>
  
<p>1] What is perl,&nbsp;<a href="http://blog.naver.com/bitnang/70182174649">http://blog.naver.com/bitnang/70182174649</a></p>
+
<p>1] What is perl,&nbsp;http://blog.naver.com/bitnang/70182174649</p>
  
<p>2] Example code of perl,&nbsp;<a href="http://www.biology-online.org/articles/introductory-workbook-perl-biology-students/8-perl-program-dna-rna-transcription.html">http://www.biology-online.org/articles/introductory-workbook-perl-biology-students/8-perl-program-dna-rna-transcription.html</a></p>
+
<p>2] Example code of perl,&nbsp;http://www.biology-online.org/articles/introductory-workbook-perl-biology-students/8-perl-program-dna-rna-transcription.html</p>
  
 
<p>3] First steps in perl,&nbsp;https://docs.google.com/viewer?url=http%3A%2F%2Fblob.perl.org%2Fbooks%2Fbeginning-perl%2F3145_Chap01.pdf</p>
 
<p>3] First steps in perl,&nbsp;https://docs.google.com/viewer?url=http%3A%2F%2Fblob.perl.org%2Fbooks%2Fbeginning-perl%2F3145_Chap01.pdf</p>

Latest revision as of 20:18, 17 June 2016

1. What is perl?

The abbreviation for “Practical Extraction and Report Language”, which is useful tool to programming.

2. What’s the benefit of using perl?

Easy to use, fast, and time saving. Moreover, there is almost no limit in programming by using perl.

3. Basic perl function information

* Perl functions

- https://metacpan.org/pod/perlfunc

* Perl pre-defined variable

- https://metacpan.org/pod/perlvar

4. Example of perl program for DNA to RNA transcription

#!/usr/bin/perl

use Bio::Seq;

$dna=”TGCAGCGAAATGT”;

($dna=~tr/T/U/);

$rna=$dna;

print”Translated seq:$rna|n”;

$startCount=($rna=~(s/UGC/start/));

print"The start seq:$rna|n”;

 

* Results:

Translated seq: UGCAGCGAAAUGU

The start seq: startAGCGAAAUGU

 

References

1] What is perl, http://blog.naver.com/bitnang/70182174649

2] Example code of perl, http://www.biology-online.org/articles/introductory-workbook-perl-biology-students/8-perl-program-dna-rna-transcription.html

3] First steps in perl, https://docs.google.com/viewer?url=http%3A%2F%2Fblob.perl.org%2Fbooks%2Fbeginning-perl%2F3145_Chap01.pdf