Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.
  • I read in some blog discussion or newsgroup that 'cls' is not really a callable command in Windows, it is a hack. Which is why it doesn't work.

    I will try and remember the conversation...

    • Or maybe I don't understand his problem...

      If I run:

      $clear = "cls";
      system($clear);

      That clears my screen. So maybe I don't know his problem.

      • I think this is it. 'cls' is not a program like cls.exe or cls.com but it is a command available to the CMD environment shell. Therefore, you cannot run it with `cls` because Windows doesn't know what to do with that.

        You have to do something like: `cmd /c cls`