I have a problem with Komodo. In debugging options I have provided program arguments (a string "21") and then in my main program I have this instruction:
$ik = <STDIN>;
print $ik."L";
BUT the program waits for my input "4" in a separate console and doesn't use "21".


The script arguments option that you're filling in passes command-line parameters to your program. These command-line arguments can be accessed inside your program via the
@ARGVarray.Or
Or
But that's not how your program expects to receive its input.
This reads the first record from the
STDINfilehandle, which is expected to be passed to your program using I/O indirection.Or piped from the output of another program.
If no redirected input is supplied, your program will, as you have seen, stop and wait for you to supply input.
I don't use Komodo, so I don't know if it has an option to supply input to
STDIN.