I'm not sure how to modify the file since I am unable to load the file in and access the hash. If there is another solution I will be more than happy to implement it.
#what replacement data looks like
"new/path/desired/data"
"new/path/desired/data"
"new/path/desired/data"
#data looks kinda like this
key1 => {
#some data i don't need
#more data i don't need
<<'END_SEARCHPATHS',
#block of data I want to replace
"some/path/to/some/file"
"some/path/to/some/file"
"some/path/to/some/file"
"some/path/to/some/file"
"some/path/to/some/file"
"some/path/to/some/file"
END_SEARCH_PATHS
}
key2 => {
<<'END_SEARCHPATHS',
#another block of data to replace
"another/path/to/some/file"
"another/path/to/some/file"
"another/path/to/some/file"
"another/path/to/some/file"
END_SEARCH_PATHS
}
|