Difference between revisions of "What is Perl?"

From Biolecture.org
imported>Mi Rae Yeo
(Created page with "<p><strong>1. What is perl?</strong></p> <p style="margin-left: 40px;">The abbreviation for “Practical Extraction and Report Language”, which is useful tool to progr...")
(No difference)

Revision as of 20:16, 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] http://blog.naver.com/bitnang/70182174649

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