Then spit out the path, filename, and the source lines where used, as they are found, to the screen. I can use tee to display to CRT & log into a file if needed later.
The OS is SGI Unix, PERL 5.6.1
I have pulled together a couple of subs, one which will search a single file for the constants, the other to print the source line to the CRT.
I have looked thru the Q & A & the CPAN examples, but was unable to find anything like this. I will be happy to post the final solution for others learn from as well.
I thought this could all be written in Perl, but I just can't seem to get this script started. Can anyone help with an example of what I want?
Thanks in advance.
ki6jux
The examples for Find::File are a bit sparse, are there any other code snippets around?
I got the shell answer to work, but I'd still like to solution this in Perl, for the experience, as a test developer, I don't get to code as much as I'd like to!
ki6
UPDATE
Thank you my fellow Monks for your quick responses! I have reached a dual solution, one in 'C' Shell, and a very elegant one in Perl, which I shall post for fellow Monks to observe and learn ...
You have renewed my faith in my fellow man/woman! Thank you!
ki6jux
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |