|
||||||
| Perl Discussion for the PERL language - Practical Extraction and Reporting Language, is a programming language often used for creating CGI programs. |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
|
|||
|
local() is a builtin perl function that defines a global perl variable with a temporary value inside a block of code. For example, "$/" is a global perl variable, you would use local() to temporarily change it's value:
Code:
here $/ has its default value
sub do_this {
local $/ = "\n\n";
.....
}
here $/ has it's default value again
|
|
|||
|
Quote:
|
|
|||
|
I am not even sure I know what your original question was because there is no such thing as "alignment" that I know of. I assumed you were asking about global or local scope of perls global variables, but maybe I have assumed wrongly. Please clarify your original question.
|
| Sponsored Links |
|
|
|
|||
|
oh i'm sorry.
eh local/global alignment, is actually like a matching strings. for example user input two strings 1st string: AGTTCAGCA 2nd string: ATCATCA after some programming using perl language, the output will become AGTTCAGCA A- T -CATCA the best result. i have no idea how to program it. Last edited by lichy; 09-30-2007 at 10:55 PM. |
|
|||
|
I guess you mean local/global in terms of DNA and not perl? I have told you previously my personal policy for helping students, I will not help with code unless you post some code that shows an honest effort at solving the problem first.
|
|
|||
|
no, i think you get the wrong idea. i'm not here for codes or whatsoever.
i just need someone to help me by breaking down this programming into simpler parts. cause the situation now is that i dont even know how to start. i dont know how to calculate it to achieve the result here. and yes, it's local/global alignment for dna. sorry for not clarifying that previously. |
|
|||
|
Well, I don't know what local/global alignment in DNA terms is. You posted two strings and a final output, but I have no idea what the algorithim or criteria is for acheiving the final output based on the input. Have you ever looked into bioperl?
Main Page - BioPerl |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| alignment | John | HTML Programming | 5 | 01-01-2007 04:16 AM |