Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: Perl on Windows Best Practices?

by BrowserUk (Patriarch)
on Jul 30, 2012 at 21:14 UTC ( [id://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 theScript.pl and because the machines with 32-bit OSs have their pathext set as PATHEXT=.pl;.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?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (3)
As of 2024-04-24 05:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found