Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
# unix echo $path1 | tr '/' '\n/ > 1.txt echo $path2 | tr '/' '\n' > 2.txt diff 1.txt 2.txt /a/b/c/different/x/y/z <--> /a/b/c/somethingelse/x/y/z ?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Comparing Elements of Two Arrays
by jeroenes (Priest) on May 30, 2001 at 15:18 UTC | |
|
Re: Comparing Elements of Two Arrays
by merlyn (Sage) on May 30, 2001 at 16:52 UTC | |
|
Re: Comparing Elements of Two Arrays
by bikeNomad (Priest) on May 30, 2001 at 17:56 UTC | |
|
Re: Comparing Elements of Two Arrays
by chipmunk (Parson) on May 30, 2001 at 20:20 UTC |