[Mono-list] perl script -- alternative?

Erick mono@rebel.ljm.net
Thu, 18 Apr 2002 14:08:22 -0500 (CDT)


On Thu, 18 Apr 2002, Daniel Carrera wrote:



On Thu, 18 Apr 2002, Erick wrote:

> <me>
>
>   Can you capture the cd command output?  In dos/win, unlike *nix, when
> the cd command is issued with no arguments, it returns the current path.
> the same behavior as pwd in *nix.  just a thought.
>
> </me>
>

Good idea.
I just just added that.  However, I don't have a Windows machine to try it
on.

Please try it and tell me if it works.

If you get an error saying "OS not recognized...", then please run the
script 'print "$^O\n"' on your Windows box and send me the output.

Cheers,
Daniel.



Number found where operator expected at D:\autogen.pl line 28, near "$^0"
        (Missing operator before 0?)
syntax error at D:\autogen.pl line 28, near "$^0"
syntax error at D:\autogen.pl line 31, near "}"
Execution of D:\autogen.pl aborted due to compilation errors.


There's your output.  I'm not perl guru, so...  This box is a win2k server 
with activestates perl.

erick