Click to See Complete Forum and Search --> : cls and Perl


cecilia_broadaw
09-22-2004, 06:16 PM
Here's the situation in a Windows programming environment:
in my mainmenu, there is the line "do you want to continue [y/n]? y" and it reads the STDIN. Normally, this works. However, after this one function, extract, this <STDIN> causes the screen to freeze. If I do a 'cls' before the STDIN, it works fine; but if I don't, it freezes. :( In a perfect world, I would like for it not to have to do a 'cls.'

Is there something about 'cls' that clears a buffer or resets the world? If so, is there a way to recreate it?

A little more background: The extract function uses a lot of calls to SFTP (Vandyke). I don't know if that would affect this either.

If you could help shed some light on this subject, I would really appreciate it!!!

Thanks,
Cecilia

Trudge
09-25-2004, 04:25 AM
Without knowing what your 'environment' is, I'm going to suggest that that may be the problem, and not 'cls'. Have you thought of that? In other words, it sounds like you're in a DOS shell for editing, is that right? If so is there a compelling reason for that? I develop Perl under W2K / Apache but use a GUI editor so I don't know about the 'cls' issue.