in reply to Re^5: Sorry.. Same problem but some progress!
in thread Sorry.. Same problem but some progress!

OK thanks very much for that. Good to know. We did update the unix server 2 years ago with a new perl version and did not run into this problem so possibly this was a recent change?

So I need no communication between this localhost site and the unix site. I'm only going to use this local site to test new code or other things before I implement them on the unix site. I'm hoping to learn more perl this way and learn to understand how my auction site works so that I can improve it.

There are many .pl scripts and I'd rather avoid having to manually change them all. Is there a way I can go to accomplish that?

Thanks again!!

  • Comment on Re^6: Sorry.. Same problem but some progress!

Replies are listed 'Best First'.
Re^7: Sorry.. Same problem but some progress!
by haukex (Archbishop) on Jun 25, 2019 at 20:53 UTC
    possibly this was a recent change?

    Relatively recent. The main change was this one in Perl 5.26.0, released in May of 2017, with some preliminary changes (these) in 5.24.1, released in January of 2017.

    There are many .pl scripts and I'd rather avoid having to manually change them all. Is there a way I can go to accomplish that?

    What change are you talking about - the include path? One way to add paths to @INC globally is by setting the PERL5LIB environment variable (taking care not to clobber its contents if it's already set).

    I'm only going to use this local site to test new code or other things before I implement them on the unix site.

    I've worked with Perl on both Windows and *NIX for many years, and let me just say that things are different on both OSes - not necessarily better or worse, but certainly different. Sure, getting Perl code to run on both is possible, but in this situation, it sounds like you've got a test/development server, which you want to set up on Windows, and a production server, which is *NIX. I do have to say that I think you'd be much happier if your test/dev system was *NIX as well, as things will mesh so much better that way - no fiddling with file permissions every time you sync the two, no differences in paths between the two, and so on. You might want to consider setting up a Linux virtual machine on your Windows system...

Re^7: Sorry.. Same problem but some progress!
by marto (Cardinal) on Jun 25, 2019 at 20:58 UTC
Re^7: Sorry.. Same problem but some progress!
by poj (Abbot) on Jun 25, 2019 at 21:19 UTC

    Environment variable PERL5LIB can be accessed from the Control Panel

    Control Panel 
    -> System and Security 
    -> System 
    -> Advanced system settings
    -> Environment Variables
    System variables
    
    poj
Re^7: Sorry.. Same problem but some progress!
by TieUpYourCamel (Scribe) on Jun 27, 2019 at 14:31 UTC

    I agree with the comments about creating a Unix virtual machine to use as your test bed. Even after (if?) you get your Windows test bed set up, you may have to (re)write some of the code to work on both platforms. That could be a project in and of itself. If getting the code to work in both Windows and *nix is your goal, go for it. I think you're asking for headaches you don't need if that's not your goal.

    I have several virtual machines that I spin up, pause, clone, and delete as needed for testing. Having a separate machine for a test environment isn't always needed, either, depending on what you're testing. You can create a virtual host on your Unix site and create a copy of your code there (or use version control) to try out your new code or other things.