in reply to Re^2: diff vs diff -y
in thread diff vs diff -y
The readfile subroutine has two purposes: First it abstracts away the fetching of the data that we'll compare with Algorithm::Diff, and secondly to reduce (even if only a little) code duplication.
By replacing the readfile() routine, you can source the data from wherever you like, without impacting the diff table generator. The way it's currently written, it'll just read whatever file you specify on the local machine. But you can rewrite readfile() to fetch from a remote server or whatever you may like. The only thing readfile() needs to return is the data you want to take the difference of.
...roboticus
When your only tool is a hammer, all problems look like your thumb.
|
|---|