in reply to windows linux and perl

Sure. Since you are working in what amounts to a perl shell, it's just a SMOP to include that functionality in your script.

I'm actually kinda surprised you get that behavior from the MS command prompt.