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!)

Reply via email to