in reply to Re^2: Setting the time on a Windows machine
in thread Setting the time on a Windows machine

Because I read this from perldoc:perlfunc:

Which, as I know time is a CMD built-in, implied to me that as there are no shell meta characters involved, would mean that I would need to force the use of CMD explicitly.

I have just tried it without and it works fine so I guess ActiveState have never updated the documentation to reflect the difference on the Win32 platform.

Thanks for pointing it out. Another peice of 'cargo cult' programming, if I understand the term correctly, bites the dust :^)

Replies are listed 'Best First'.
Re^4: Setting the time on a Windows machine
by Aristotle (Chancellor) on Jul 08, 2002 at 16:48 UTC
    Hrm. Now the question is, can that behaviour be expected to remain as is? Since the docs were not updated, it may well be implementational detail.. I guess the safe way to achieve exactly predictable behaviour would be system "cmd.exe", "/c", "time $time"; as that is guaranteed to call the given program without going through the shell - except we happen to be calling the shell.

    Makeshifts last the longest.

      Point well taken.