Thank you very much. This will help me.
Can we perfom a match by first concating the 2 strings and then querying on it.
my $left = "xfafasfsdfasdfasdsfFOOBAR";
my $right = "FOOBAR4t11";
# my $concat = "xfafasfsdfasdfasdsfFOOBARFOOBAR4t11";
my $concat = $left,$right;
I should be able to hold on to
FOOBAR in a back reference so that I can do further manipulation.
I need it this way because I do not know the size of boundaries which will match and I would like to match the maximum characters possible to match.
After this match the two sub strings should be concatnated. this concatnated string will have a single copy of
FOOBAR
in the middle. like
my $conc = "xfafasfsdfasdfasdsfFOOBAR4t11";
now this concatnated string will need to matched with one more string let us say
my $str3 = "AR4t11xysadgsfje";
Now
AR4t11 will match and the above process is repeated.
How efficient will this be if I have about sub strings of size about 500 each and I need to compare about 10000 such sequences with each other.
Thank you.
braj
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.