Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re^2: matchin a pattern 250 characters up and down stream

by Anonymous Monk
on Jun 28, 2012 at 05:15 UTC ( #978836=note: print w/ replies, xml ) Need Help??


in reply to Re: matchin a pattern 250 characters up and down stream
in thread matchin a pattern 250 characters up and down stream

FILE1
0 XYZ 5
1 TTY 15
0 MNU 10
FILE2
ABCDEFGHIJKLMNABCRSTUVWXYZ.....
it shud read the file 1 get the position (3rd column) open another file (file2). from postion 5 it should go say 10 positions ahead if 0 appears in file 1(column1) and check whether $ABC is found. the same if 1 appears but it has to go 10 characters before the from position 5 in this example
if match if found like this it should print Y other wise N


Comment on Re^2: matchin a pattern 250 characters up and down stream

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://978836]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (4)
As of 2015-07-28 01:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (251 votes), past polls