Comparing two directories using Perl

后端 未结 3 1262
太阳男子
太阳男子 2021-01-16 05:40

i am new to Perl so excuse my noobness,

Here\'s what i intend to do.

$ perl dirComp.pl dir1 dir2

dir1 & dir2 are directory nam

3条回答
  •  温柔的废话
    2021-01-16 05:52

    I'd recommend using File::DirCompare module instead. ) It takes all the hard work of traversing the directory structure - you just need to define how your directories should be checked (should the sub compare the file contents, etc.)

提交回复
热议问题