Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: Installing of CPAN::Checksums 2.14 is not working

by xiaoyafeng (Deacon)
on Jun 02, 2022 at 04:57 UTC ( #11144347=note: print w/replies, xml ) Need Help??


in reply to Installing of CPAN::Checksums 2.14 is not working

Hi Dirk80

I've tried to install the module on my windows. You have to modify several places if you want to pass all tests(and maybe use it on windows ;))
  1. modify test as choroba 's suggestion. Re: Installing of CPAN::Checksums 2.14 is not working
  2. the author use rename to move dir, sadly, it doesn't work on windows rename, so you have to replace rename with File::Copy::move or others( both on pm and t files)
  3. the author think \n is one byte, but it's 2 bytes on windows actually, so test for size of file 2 would be failed. maybe you should skip this test on windows
  4. delete the dir created by previously test manually, before you test again, otherwise the test will be failed. (when all tests passed, those dir will be deleted by tests. As Tux point out, inserting a rmtree statement at last is not a good idea.




I am trying to improve my English skills, if you see a mistake please feel free to reply or /msg me a correction

  • Comment on Re: Installing of CPAN::Checksums 2.14 is not working

Replies are listed 'Best First'.
Re^2: Installing of CPAN::Checksums 2.14 is not working
by Anonymous Monk on Jun 02, 2022 at 06:05 UTC
    Ah the old core portability lessons

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (3)
As of 2023-04-02 08:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?