Unformatted text preview:

1Applying Perl10-31-20052Opening Discussion■What did we talk about last class?■Do you have any questions about the reading or was there anything in the reading you found particularly interesting?3Concluding Regular Expressions■The base pairs of DNA are typically labeled with the letters A, C, G, and T. In the double helix, A is always bound to T and C is always bound to G. Write a subroutine that takes one strand and returns what you would have in the opposite strand.■Perl has another regular expression type of the form tr///. The tr stands for transliteration and it does mass replacement at once to make this task a lot simpler.■Three base pairs encode a protein (it's not really that simple, but we'll go easy for this problem). Write a subroutine that takes a sequence and counts how many time each sequence of three base pairs occurs. Assume the number of bases is a multiple of 3 to start.4Funky Control Structures■Do you have any questions about the control structures in Perl? They allow you to do things in a lot of different ways. Some might argue too many different ways. Oddly, some of their “tricks” would work in other languages, but programmers of other languages would probably frown on them even more than Perl programmers do.5Doing Files in Perl■Let's go back to our telephone book example now and I want you to make it so that you input the name of the file to read the telephone numbers from, not on command line, but interactively. What do we have to change in the code to make this work?■How do we get information about files in Perl?■What are bitwise operators? How do you use them and when do you use them?6Reminders■Remember to turn in assignment #7


View Full Document

TRINITY CSCI 2323 - Applying Perl

Documents in this Course
Load more
Download Applying Perl
Our administrator received your request to download this document. We will send you the file to your email shortly.
Loading Unlocking...
Login

Join to view Applying Perl and access 3M+ class-specific study document.

or
We will never post anything without your permission.
Don't have an account?
Sign Up

Join to view Applying Perl 2 2 and access 3M+ class-specific study document.

or

By creating an account you agree to our Privacy Policy and Terms Of Use

Already a member?