Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: In place replacement from reference list

by LanX (Saint)
on Sep 06, 2022 at 23:24 UTC ( [id://11146729]=note: print w/replies, xml ) Need Help??


in reply to In place replacement from reference list

this can't be solved exactly if you have ambiguous paths, like
/a/b/cd/e.sh /a/b/c/de.sh

both will produce /a/b/cde.sh

But which one is correct?

You will need to check all possible included paths and then if the "remaining" file exists.

Once you have multiple hits, you'll need to use heuristics.

Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11146729]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (6)
As of 2024-04-19 23:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found