If you're using Perl Builder, you should see the Debugger Status as RUNNING
at the bottom of the screen if your script is still running.  In the example
given, you DO have to break out of the <STDIN> loop.  Try entering a Ctrl-Z
(Windows EOF) as the last character, and that should let you break out of
it.

-----Original Message-----
From: Mark M. Andrich [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 10, 2002 3:14 PM
To: [EMAIL PROTECTED]
Subject: Stumped by "Learning Perl" example


Chapter 3 Ex. 1:

 

They use the following code:

 

print "Enter some lines and than use the ctrl set to end! \n" ;
print reverse <STDIN>;

 

or 

 

print "blah blah blah. \n";

@lines = <STDIN>;

@reverse_lines = reverse @lines;

print reverse_lines

 

I'm using Perl Builder 2.2 on Win 2K. When I run the script, I get the
initial sentence and enter my input in the I/O box, after that nothing
happens. Either I can't seem to find the right combination to break out
or the script is simply not running. Has anyone else who's used this
book under similar circumstances come across this problem? Any guidance
is appreciated.

 

Thanks,

 

Mark (Climbing the learning curve!)


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to