Perl: the Markov chain saw | |
PerlMonks |
Windows viewpoint?-- Re^3: running programs from PERLby jakobi (Pilgrim) |
on Oct 25, 2009 at 14:43 UTC ( [id://803153]=note: print w/replies, xml ) | Need Help?? |
My original question is the reverse of your example: Can I e.g. set $ENV{VARIABLE} in a non-CYGWIN-port of Perl, and then use system q{dir "%VARIABLE%"} to have cmd.exe expand the variable? More specifically, what happens if the variable contains [\n \\;"']?A new question/request: What I'd love to do is appending a link to a node giving the comparable portable (or windows) version of $ENV{f}="a b; 'c'"; system q{dir "\$f"}. What I currently have - after some searching on PerlMonks - is a mess and a headache (and a bit of glee in lacking the windows environment to test this mess). It reads like system/exec/(pipe-)open should be avoided on Windows for non-trivial commands, preferring IPC::System::Simple or Win32::Process::Create instead.
Do we have a better explanation or tutorial already on PerlMonks or do you know of a suitable resource outside?
cu & thanx, Peter -- hints may be untested unless stated otherwise; use with caution & understanding.
In Section
Seekers of Perl Wisdom
|
|