in reply to Generating EOF character on Win98

Well, I get the same thing happening to me whenever I run any scripts on Windows. What do you mean by "terminates"?

If you mean that the program exits and returns you to the C:\ prompt (or wherever) then I have no idea.

However, what always happened to me is that the DOS window I was running the thing in would simply vanish. If this is the problem, do not run the perl script by double-clicking on the icon. In my case would run fine, but when the last bit of output is reached (In this case, your "hello") it would print it and then IMMEDIATELY kill the window.

The solution was to open the DOS window first (Start --> Programs --> MS-DOS Prompt if my memory is holding out) and then run your script using perl "location" where "location" is the path to your script.

It's also worth noting that if Perl isn't in your PATH, that won't work unless you're in your Perl directory.

Replies are listed 'Best First'.
Re: Re: Generating EOF character on Win98
by John M. Dlugosz (Monsignor) on Jul 24, 2001 at 01:26 UTC
    It's also worth noting that if Perl isn't in your PATH, that won't work unless you're in your Perl directory

    It works if you have an alias set up, so Perl expands into the fully-qualified name.

    It works if your shell looks in the "App Paths" registry settings.