in reply to Re: Of Perl Ports and Maintainability
in thread Of Perl Ports and Maintainability

I've noticed that about File::Copy on Unix, my benchmarks have it copying a set of files almost twice as fast as cp or an off the shelf tool. And given what I've learned thus far in the port process, I'm going to go back to the Unix side and change those as well to use File::Spec. As for the environement hash (on Unix) I can't get away from it. Doesn't matter on Windows though. I've done my best to try to make %ENV safer. I'll take a look at using having the routine check the OS version and do work based on that. Thanks for the input.


"Ex libris un peut de tout"
  • Comment on Re: Re: Of Perl Ports and Maintainability

Replies are listed 'Best First'.
Re3: Of Perl Ports and Maintainability
by dragonchild (Archbishop) on Jul 29, 2003 at 20:14 UTC
    As for the environement hash (on Unix) I can't get away from it.

    That's not the attitude I would take. The %ENV hash can be replaced very easily with any one of the Config modules on CPAN. And, in fact, should be replaced with those. By doing that, you remove a huge area which is OS-dependent. It also removes a lot of the maintenance headaches for you. I would seriously look into doing that.

    ------
    We are the carpenters and bricklayers of the Information Age.

    Don't go borrowing trouble. For programmers, this means Worry only about what you need to implement.

    Please remember that I'm crufty and crochety. All opinions are purely mine and all code is untested, unless otherwise specified.