Using stdin in komodo ide with perl


Apologies in advance if this has been answered, but I couldn’t find it…

On windows command line (and native perl debugger) I can execute < inputfile.txt
In the script I can read the entire file e.g.
chomp (my @recs = <STDIN>)

What I would like to do is to use komodo ide to do the same. Yes I can hardcode the file name, open it, etc., but is there a way to do it similar to the command line above? Passing it as a parameter does not work.

Thanks in advance.

@lioffe, you should be able to do this by setting up “remote debugging” so when you’re scripts starts it will launch a debug session in Komodo.

Have a look at the Komodo docs for setting up Perl Remote Debugging in Komodo:

Please feel free to ask more clarifying questions.

  • Carey

Lovely, works like a charm. Thanks a lot.

1 Like