Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical

Re: Perl on Windows Best Practices?

by BrowserUk (Pope)
on Jul 30, 2012 at 21:14 UTC ( #984527=note: print w/replies, xml ) Need Help??

in reply to Perl on Windows Best Practices?

About half the PCs are XP/x86, and the other half are Windows 7/x64

Put a 32-bit perl on a network share. Give anyone wanting perl access to that share and set their assoc .pl to point to that shared perl. 32-bit Perls run perfectly on 64-bit Windows.

If there are some scripts that need/benefit from using a 64-bit perl, install a 64-bit perl on teh same share (different) path and set up associations for that using a different file extension (say .p64).

  • When a user runs a script that needs 64-bit, they'll type theScript ...;
  • that will resolve (via PATHEXT=.p64;.COM;.EXE;.BAT;.CMD;) to a file called theScript.p64;

    If it becomes necessary to have both 32-bit & 64-bit versions of a given script; then the 32-bit is call and because the machines with 32-bit OSs have their pathext set as;.COM;.EXE;.BAT;.CMD;; when they type theScript ..., it gets resolved to the 32-bit version.

  • the association for that will be assoc .p64=Perl64
  • the ftype for that will be ftype Perl64="P:\\perl64\bin\perl.exe" "%1" %*;

A similar set of associations for files named .pl run the 32-bit perl.

You have 2 centrally maintained, universally accessible builds of perl that everyone can use.

Getting them to use them is then a matter of political will and company process.

With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.

The start of some sanity?

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (7)
As of 2020-08-11 22:01 GMT
Find Nodes?
    Voting Booth?
    Which rocket would you take to Mars?

    Results (63 votes). Check out past polls.