Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

motching contents from different files...

by suno (Acolyte)
on Aug 22, 2012 at 14:29 UTC ( #989051=perlquestion: print w/ replies, xml ) Need Help??
suno has asked for the wisdom of the Perl Monks concerning the following question:

Hi PerlMonks!,...

I am working on a tool which converts assembler to some language....

i have a CODE file that has my code..for example LA VAR1,R1
, MACRO file that has a set of macros taken from the code.for example.. @OPEN arg=VAR1 , LIBRARY folder that has the list of macro files...

Here, i have to capture 'VAR1' from the CODE file and search for 'VAR1' from the MACRO file and get the corresponding macro..here in the above example, my macro is '@OPEN'... then making note of the macro,i need to go to the LIBRARY and search the macro that we have noted earlier (@OPEN) and retreive the data corresponding to the variable VAR1(data will be VAR1's length,datatype,value)...

Can this be achieved using perl???

Comment on motching contents from different files...
Select or Download Code
Re: motching contents from different files...
by choroba (Abbot) on Aug 22, 2012 at 14:40 UTC
    Yes, it can, if you know Perl and if you know how. Any more specific questions? What have you tried, what did not work?
    لսႽ ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ
Re: motching contents from different files...
by nemesdani (Friar) on Aug 22, 2012 at 14:42 UTC
    Hell yeah!!!


    I'm too lazy to be proud of being impatient.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (6)
As of 2014-08-31 06:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (294 votes), past polls