ActivePerl 5,10,0,1004 [Build 1004
287188]
Eclipse version:
Version: 3.3.2
Build id: M20080221-1800
EPIC: 0.6.27
Installed by Eclipse->Help->Software Updates->Find and install...
PadWalker:
Running: ppm install PadWalker
Success, PadWalker is 1.7, Released: 2008-02-04.
I make a perl script as:
---------------------------------------------------
#!/usr/bin/perl -w
use warnings;
sub total {
my(@arr)=@_;
my $result;
foreach (0..$#arr){
$result += $arr[$_];
}
return $result;
}
my @fred = qw(1 3 5 7 9);
my $fred_total = total @fred;
print "The total of \@fred is $fred_total.\n";
---------------------------------------------------
Setting Eclipse->Windows->Preference->Perl EPIC->
Set "Perl Execute" to "C:\Perl\bin\perl.exe", Interpreter Type is Standard, Save all.
Create a Debug configuartoin through:Eclipse->Run->
Open Debug Dialog...->Perl Local->New a debug configuration
named "tmp_debug"->Just setting Project and File to execute.
Run a debug session of "tmp_debug", Step into, step over,
etc works well, but there is nothing in Variable View.
Anybody know Why ?
Thanks in advanced. Very Appreciate!
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.