Solved

Perl beginner -- Eclipse Display view has "Display Result" icon grayed out

Posted on 2008-10-19
5
398 Views
Last Modified: 2012-06-21
I have a Perl script that I have loaded into Eclipse (using the EPIC plugin).

In both the Perl perspective and the Debug perspective, I have tried to execute a command in the Display view.

However, the "Display Result" icon on the Display view is grayed out.

What do I need to do to turn enable it?
0
Comment
Question by:josgood
  • 3
  • 2
5 Comments
 
LVL 39

Expert Comment

by:Adam314
ID: 22754783
I think that view is only for use with Java, not perl.
0
 
LVL 13

Author Comment

by:josgood
ID: 22754788
Well that would certainly explain it.

Are you aware of any analagous view for Perl?  I can run perl from the command line, but that can potentially be a different environment.
0
 
LVL 13

Author Comment

by:josgood
ID: 22754789
Perhaps a plugin?  I'm currently using EPIC.
0
 
LVL 39

Accepted Solution

by:
Adam314 earned 500 total points
ID: 22758311
I'm not real certain what that view would do.  There is the perl expression view, which allows you to run any code in the current context of what is being debugged.  Here is the guide for EPIC, which might help:
    http://www.epic-ide.org/downloads/EPIC_User's_Guide.pdf

When I want to run some test code, what I'll do is place it at the beginning of my main program file, then put exit after it.  Then when I click the run button, it runs within EPIC.

********** The .pl file that gets run when I click the run button

#!/usr/bin/perl

use strict;

use warnings;

#use some other module
 

#I add my test code here

exit;
 

#my normal code is here

Open in new window

0
 
LVL 13

Author Closing Comment

by:josgood
ID: 31507611
Thank you.  That's a creative response to a question whose answer is almost "you can't do that".  Thank you for taking the time to guide me.  I'll remember that trick.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

I've just discovered very important differences between Windows an Unix formats in Perl,at least 5.xx.. MOST IMPORTANT: Use Unix file format while saving Your script. otherwise it will have ^M s or smth likely weird in the EOL, Then DO NOT use m…
A year or so back I was asked to have a play with MongoDB; within half an hour I had downloaded (http://www.mongodb.org/downloads),  installed and started the daemon, and had a console window open. After an hour or two of playing at the command …
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
The viewer will learn how to use NetBeans IDE 8.0 for Windows to connect to a MySQL database. Open Services Panel: Create a new connection using New Connection Wizard: Create a test database called eetutorial: Create a new test tabel called ee…

861 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now