Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: RFC: perl sub diff between two files

by Anonymous Monk
on Mar 29, 2018 at 01:15 UTC ( #1211950=note: print w/replies, xml ) Need Help??


in reply to RFC: perl sub diff between two files

If you "forked" them then this implies that both versions are under version-control, e.g. git or svn. Both of which can compare and reconcile differences – especially if you did each set of changes (as you should have) on separate branches. You should have no need of Perl-tomfoolery here.
  • Comment on Re: RFC: perl sub diff between two files

Replies are listed 'Best First'.
Re^2: RFC: perl sub diff between two files
by LanX (Archbishop) on Mar 29, 2018 at 07:26 UTC
    >  e.g. git or svn. Both of which can compare and reconcile differences

    You sound like sundial ...

    Neither GIT nor SVN can "compare or reconcile" using Perl semantics, they work only by line* comparison.

    Otherwise please show me how to do this with a subroutine which moved from start to end of a file after refactoring.

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

    *) more precisely "chunks of equal lines"

      exactly one of my main motivations. although i did not use GIT nor SVN for other reasons, including laziness.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (7)
As of 2019-10-22 06:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?