OceanPerl has asked for the wisdom of the Perl Monks concerning the following question:
Hello gurus,
I have three files, let's call them "main", "lib1" and "lib2".
As you may imagine, the "lib" files contain functions called by "main".
Whilst I can easily "grep" out the names of the functions from the "lib" files, what I would *really* like to be able to do would be to highlight their usage in the main file. Either by prefixing the lines in the main file with some sort of flag, or by printing out a report the lines numbers where they are used in main.... or both
Unfortunately I'm at a loss as to where to start, and if I'm being honest I wouldn't even know what sort of search terms to use on Google ... ;-)
So it is therefore with much intrepidation that I put myself forward to the lions at Perlmonks.....
Thanking you most kindly in advance for your most valuable contributions.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Using perl for refactoring
by GrandFather (Saint) on Dec 09, 2014 at 11:28 UTC | |
by Anonymous Monk on Dec 09, 2014 at 11:56 UTC | |
Re: Using perl for refactoring
by mr_mischief (Monsignor) on Dec 09, 2014 at 15:14 UTC | |
Re: Using perl for refactoring
by pajout (Curate) on Dec 09, 2014 at 11:10 UTC | |
by OceanPerl (Initiate) on Dec 09, 2014 at 12:21 UTC | |
by karlgoethebier (Abbot) on Dec 09, 2014 at 13:24 UTC | |
by pajout (Curate) on Dec 10, 2014 at 11:06 UTC | |
by Anonymous Monk on Dec 09, 2014 at 11:35 UTC | |
Re: Using perl for refactoring
by locked_user sundialsvc4 (Abbot) on Dec 09, 2014 at 17:04 UTC |