iKnowNothing has asked for the wisdom of the Perl Monks concerning the following question:
Hello,
I'm a bit confused over this. I am trying to clear the screen using a system call. (I am running this on a Windows 2000 machine). I tried using system('cls'), but that did not work. Well, I'll let the code speak for itself,
This does not clear the screen. The output is 65280. Does anyone know what would cause this not to work? UPDATE: after running this with the -w switch, perl informs me that it Can't spawn "cmd.exe": Invalid argument at test.pl line1.$Output = system('cls'); print($Output);
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: why doesn't my system('cls') work?
by diotalevi (Canon) on Oct 06, 2004 at 16:53 UTC | |
Re: why doesn't my system('cls') work?
by bibo (Pilgrim) on Oct 06, 2004 at 17:09 UTC | |
by Anonymous Monk on Oct 06, 2004 at 18:48 UTC | |
by LanceDeeply (Chaplain) on Oct 06, 2004 at 17:17 UTC | |
by insensate (Hermit) on Oct 06, 2004 at 17:27 UTC | |
by LanceDeeply (Chaplain) on Oct 06, 2004 at 20:49 UTC | |
by bibo (Pilgrim) on Oct 06, 2004 at 17:35 UTC | |
Re: why doesn't my system('cls') work?
by iKnowNothing (Scribe) on Oct 06, 2004 at 18:59 UTC | |
by Anonymous Monk on Jul 23, 2011 at 04:42 UTC | |
by Anonymous Monk on Jul 23, 2011 at 04:53 UTC | |
A reply falls below the community's threshold of quality. You may see it by logging in. |
Back to
Seekers of Perl Wisdom