perl script

S

seema

Is it possible to write a script in perl
that searches functions in all the *.h
files in the Linux box and write the output
to a file. Assume we will store the required
functions in hash tables and use this hash table
in our script.
seema
 
A

Arndt Jonasson

Is it possible to write a script in perl
that searches functions in all the *.h
files in the Linux box and write the output
to a file. Assume we will store the required
functions in hash tables and use this hash table
in our script.

I haven't used it, but it seems the CPAN module C-Scan might be
useful. See www.cpan.org.
Whether you use hash tables is up to you, but it seems a reasonable
choice. (Actually, that last sentence makes the query sound like
a homework problem. Is it?)

The short answer if of course "yes, it's possible". It's not likely
to impress a teacher, though.
 
T

Tad McClellan

seema said:
Subject: perl script


Please put the subject of your article in the Subject of your article.

Is it possible to write a script in perl
that searches functions in all the *.h
files in the Linux box and write the output
to a file.


Yes.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,016
Latest member
TatianaCha

Latest Threads

Top