Using stdin in komodo ide with perl


#1

Hello

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
script.pl < 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.


#2

@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:
http://docs.activestate.com/komodo/11/manual/debugperl.html#debugging-perl-remotely

Please feel free to ask more clarifying questions.

  • Carey

#3

Lovely, works like a charm. Thanks a lot.