Hiya, I'm completely new to Perl (Day one of "Teach yourself in 21 days"). I've played a little and written a couple of short scripts, and I'm used to programming (SAS and VB programmer).
So, I'm learning Perl, and I've coded one of the example scripts from the book, it works fine when submitted from the command line, but in both the IDEs I've tried using it doesn't work the way I expect.
Here's the code:-
Pretty damned basic. When I run it from the command line, it prints "Echo? " and waits for my prompt. When I run it in either SciTe or Open Perl IDE, it waits for my prompt, THEN prints "Echo? "
IE, in DOS, I get this afterwards:-
In the IDE I get this:-
Any ideas? It's no point me using an IDE for developing if I can't rely on it performing the same way as it will when I run the prog for real.
So, I'm learning Perl, and I've coded one of the example scripts from the book, it works fine when submitted from the command line, but in both the IDEs I've tried using it doesn't work the way I expect.
Here's the code:-
Code:
# echo the input line to the output
print 'Echo? ';
$input = <STDIN>;
print $input;
IE, in DOS, I get this afterwards:-
Code:
Echo? This works
This works
Code:
This doesn'tEcho? This doesn't
Any ideas? It's no point me using an IDE for developing if I can't rely on it performing the same way as it will when I run the prog for real.