in eclipse, you can also do:
window->preferences->run/deb
Main Topics
Browse All TopicsI'm writing a perlscript in Aptana (or Eclipse) and at a certain point, if the output to the console is too large, the beginning of the messages generated during execution, like anything I print to STDOUT or any error messages, gets cut off. Is it possible to either redirect the STDOUT to a logfile, or preferebly, just maintain a log of everything sent to the console that gets overwritten each run?
Thank you.
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
That definitely worked, it redirected STDOUT to a log file, but now the console is giving me an error:
[Fri Sep 4 16:04:27 2009] program.pl: Name "main::LOG" used only once: possible typo at C:/Aptana Studio/CONVERSION/cgi-bin/
Anyone know if it's possible to also retain the output in the IDE console?
check out this perlmonks thread: http://www.perlmonks.org/i
Business Accounts
Answer for Membership
by: Fairlight2cxPosted on 2009-09-04 at 11:32:35ID: 25262147
Yes, it is.
");
open(LOG,">/path/to/logfile
open(STDOUT,">&LOG");
That dupes STDOUT onto LOG. Anything sent to STDOUT will go to LOG instead.
Additionally, you may wish to dupe STDERR the same way:
open(STDERR,">&LOG");
I use the duping technique a lot on Windows applications, duping STDERR onto STDOUT.