PACKAGE NAME: change_a_line_everywhere
AUTHOR:
DATE: V 0.1 Jun 15 2022
DESCRIPTION: replace Perl directory structure within all files
Version: 0.1 0.2 use search_directories.pm instead of L_SU_global_variables.pm 0.3 use dirs.pm instead of search_directories.pm
The is a grandparent:parent:child relationship for two of the sets of directories
but only a grandparent:parent relationship for the remaining third directory set.
Based on change_a_line V0.1
Look at every file with a .pm and .pl extension Requires looking at all files within the following categories (See search_directories) SU, GEN, SPECS, GUI, TOOLS
1. for each of 4 categories get CATEGORY[ABS_PATHs][FILmy $line2find_use = '\s*use\s';E_NAMEs] = 'full path and file name' (from search_directories)
2. Search every file for the lines of interest (loi) CATEGORY_lines_of_interest[ABS_PATHs][FILE_NAMES] = array_ref e.g.: lines 1 and 2 slurp file test every line write loi to array
3. For each CATEGORY[ABS_PATHs][FILE_NAMEs],look at loi slurp file again
Review conditions Replace the line with proper hierarchy relative_path::file_name Add other special lines replace old with new file
of directory structure. Local development!
from the SU category
in SU-type files and replace them
from the GEN category and replace them(
in GEN-type files and replace them
from the SPECS category
in SPECS-type files and replace them
from the GUI category
in GUI-type files and replace them
from the TOOLS category
in TOOLS-type files and replace them
replace line of interest
include a new line of interest
To install App::SeismicUnixGui, copy and paste the appropriate command in to your terminal.
cpanm
cpanm App::SeismicUnixGui
CPAN shell
perl -MCPAN -e shell install App::SeismicUnixGui
For more information on module installation, please visit the detailed CPAN module installation guide.