Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: Unix shell versus Perl

by spurperl (Priest)
on Feb 18, 2008 at 18:49 UTC ( #668641=note: print w/ replies, xml ) Need Help??


in reply to Unix shell versus Perl

I have a vague recollection of something that can be done by .bat files but not by a Perl script. I don't remember for sure but it has to do with environment variables.

IIRC you can set env vars in a .bat script that will persist after it exits, in the same command window. This is used, for instance, for setting up Visual Studio paths (the venerable vcvars32.bat script). I don't think this can be done in Perl ?!


Comment on Re: Unix shell versus Perl
Replies are listed 'Best First'.
Re^2: Unix shell versus Perl
by TGI (Vicar) on Feb 18, 2008 at 18:57 UTC

    Your variables will stick around unless you do a setlocal, default behavior is to screw up your environment. I just love DOS.


    TGI says moo

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (12)
As of 2015-07-30 12:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (271 votes), past polls