2011年5月28日星期六

Re:[PerlChina] perl模块如何更新关联

直接复制过去把

在 2011-05-27 21:30:23,"owen nirvana" <freeespeech@gmail.com> 写道:
作了perl的版本更新之后(5.10 ==> 5.12),原先cpan/cpanm安装的一些perl模块就都不能用了(默认都安装在5.10的目录下),该如何更新呢
gtalk:freeespeech@gmail.com

--
您收到此邮件是因为您订阅了 Google 网上论坛的"PerlChina Mongers 讨论组"论坛。
要向此网上论坛发帖,请发送电子邮件至 perlchina@googlegroups.com
要取消订阅此网上论坛,请发送电子邮件至 perlchina+unsubscribe@googlegroups.com
若有更多问题,请通过 http://groups.google.com/group/perlchina?hl=zh-CN 访问此网上论坛。


--
您收到此邮件是因为您订阅了 Google 网上论坛的"PerlChina Mongers 讨论组"论坛。
要向此网上论坛发帖,请发送电子邮件至 perlchina@googlegroups.com。
要取消订阅此网上论坛,请发送电子邮件至 perlchina+unsubscribe@googlegroups.com。
若有更多问题,请通过 http://groups.google.com/group/perlchina?hl=zh-CN 访问此网上论坛。

2011年5月27日星期五

[PerlChina] perl模块如何更新关联

作了perl的版本更新之后(5.10 ==> 5.12),原先cpan/cpanm安装的一些perl模块就都不能用了(默认都安装在5.10的目录下),该如何更新呢
gtalk:freeespeech@gmail.com

--
您收到此邮件是因为您订阅了 Google 网上论坛的"PerlChina Mongers 讨论组"论坛。
要向此网上论坛发帖,请发送电子邮件至 perlchina@googlegroups.com。
要取消订阅此网上论坛,请发送电子邮件至 perlchina+unsubscribe@googlegroups.com。
若有更多问题,请通过 http://groups.google.com/group/perlchina?hl=zh-CN 访问此网上论坛。

2011年5月23日星期一

Re: [PerlChina] vec函数如何计算网络掩码?

IP 地址 32 位,按每8位一段分成4段,你想转换的掩码如:

CIDR  : 8
十进制:         255 .             0 .             0 .             0
二进制:11111111 . 00000000 . 00000000 . 00000000

其实这里 CIDR 指的就是IP地址中作为网络号的bit的位数(如上从左至右前8位为1),所以想要将 CIDR 转换为子网掩码,只需要根据 CIDR 从左至右将对应比特位设为1,其他位为0,然后转换为4段十进制表示就行了。

vec 函数就是用来对指定位进行操作的,它有三个参数,形式如下:

vec($var, $offset, $unit_len)   

$var 代表要操作的位串;
$offset 代表偏移量;
$unit_len 就是 perldoc -f vec 里所说的 BITS,它指的是 vec 操作的单位元素大小(多少个位),所以我这里用 $unit_len 来表式更直白一点。

在你的例子中,只需要初始化一个 32 位长度,每位都是0的串,即:

vec( $mask, 0, 32 ) = 0x0;

然后根据 CIDR 的值,将对应位设为1,即:

foreach (1..$length){    # 这里 $lenght 就是 CIDR 的值
        vec( $mask, (32-$_), 1 ) = 0x01;  # 从右往左,将8位设为1
}

这里为啥用 "(32-$_)"(即从后往前操作)?这是因为当前情况下,操作的位串是 little-endian 的(见 vec 文档),即:

二进制:11111111 . 00000000 . 00000000 . 00000000

按 little-endian 方式就成了 (即从右往左):

二进制:00000000 . 00000000 . 00000000 . 11111111

所以我们 用 vec 操作 $mask 的时候, offset 是从右往左递减1的。
操作完后,sprintf( "%vd", $mask ) 将 $mask 按十进制打印出来,其中 "%vd" 告诉 perl,  $mask 是个 vec 整数串。
操作完后,用 split + reverse 将它再倒过来,就是我们所求的对应掩码了。









2011/5/23 perl01 <perl01@live.cn>
问个问题,vec函数是如何将1 ~ 32 转换成掩码的,比如24对应255.255.255.0.
foreach (1..32){
    printf "$_ => %s\n", &cidr2mask($_);
}
exit 1;
sub cidr2mask{
    my $length = shift;
    my $mask = '';
    vec( $mask, 0, 32 ) = 0x0;         # 这里开始我就不是太懂了,vec函数的原理是什么?
    foreach (1..$length){
        vec( $mask, (32-$_), 1 ) = 0x01;   #这里呢?
    }
    $mask = join( '.', reverse( split( /\./, sprintf( "%vd", $mask ) ) ) );
    return $mask;
}
 
2011-05-23

perl01

--
您收到此邮件是因为您订阅了 Google 网上论坛的“PerlChina Mongers 讨论组”论坛。
要向此网上论坛发帖,请发送电子邮件至 perlchina@googlegroups.com
要取消订阅此网上论坛,请发送电子邮件至 perlchina+unsubscribe@googlegroups.com
若有更多问题,请通过 http://groups.google.com/group/perlchina?hl=zh-CN 访问此网上论坛。

--
您收到此邮件是因为您订阅了 Google 网上论坛的"PerlChina Mongers 讨论组"论坛。
要向此网上论坛发帖,请发送电子邮件至 perlchina@googlegroups.com。
要取消订阅此网上论坛,请发送电子邮件至 perlchina+unsubscribe@googlegroups.com。
若有更多问题,请通过 http://groups.google.com/group/perlchina?hl=zh-CN 访问此网上论坛。

2011年5月22日星期日

[PerlChina] looking for a new maintainer of JavaScript-Beautifier

Hi

I'm looking for a new maintainer of my module
http://search.cpan.org/dist/JavaScript-Beautifier/ because my life is
kindly busy recently.

basically this module does the same as http://jsbeautifier.org/
the git repos is https://github.com/fayland/perl-javascript-beautifier
the original js (now it has Python too) is https://github.com/einars/js-beautify

it's basically a Perl port of the Javascript. all you need to know is
Javascript (or Python if you prefer) and Perl.
the steps will be:
1. fork my respo
2. update the Perl tests with
https://github.com/einars/js-beautify/blob/master/tests/beautify-tests.js
3. update the Perl main code to pass the tests.
4. package it and upload it to PAUSE (I'll make you co-maintainer
first, and pass the maintainer-ship to you if you want)

I can provide any help if need (but don't rely on me too much b/c I'm
busy). let me know if you're interested. it's a good opportunity to
get involved to CPAN and Perl.

Thanks.

--
Fayland Lam // http://www.fayland.org/

--
您收到此邮件是因为您订阅了 Google 网上论坛的"PerlChina Mongers 讨论组"论坛。
要向此网上论坛发帖,请发送电子邮件至 perlchina@googlegroups.com
要取消订阅此网上论坛,请发送电子邮件至 perlchina+unsubscribe@googlegroups.com
若有更多问题,请通过 http://groups.google.com/group/perlchina?hl=zh-CN 访问此网上论坛。

[PerlChina] vec函数如何计算网络掩码?

问个问题,vec函数是如何将1 ~ 32 转换成掩码的,比如24对应255.255.255.0.
foreach (1..32){
    printf "$_ => %s\n", &cidr2mask($_);
}
exit 1;
sub cidr2mask{
    my $length = shift;
    my $mask = '';
    vec( $mask, 0, 32 ) = 0x0;         # 这里开始我就不是太懂了,vec函数的原理是什么?
    foreach (1..$length){
        vec( $mask, (32-$_), 1 ) = 0x01;   #这里呢?
    }
    $mask = join( '.', reverse( split( /\./, sprintf( "%vd", $mask ) ) ) );
    return $mask;
}
 
2011-05-23

perl01

Re: [PerlChina] perl作版本更新的时候站中的模块如何维护

别这样认为啦,也是为了社区繁荣啦

在 2011年5月23日 上午9:11,Beckheng Lam <bi.ken.lam@gmail.com>写道:
老兄你这样像"骗"生意啵。

于 2011年05月23日 08:22, zero hero 写道:
小子发现perlchina 很久没有大规模讨论技术问题了,貌似都骗到MM,回家生孩子了??
于是乎小子决定挑个头,发几个perl工具供大家讨论一下.
解释一下:
main.pl phpchina刷分外挂
PluginBase.pl webqq挂机外挂 可以基于此开发qqapp的各种外挂有兴趣的可联系小子啦
submitTiBaiduPP.pl 百度空间发帖外挂
这个帐号不常用 联系 firedtoad@gmail.com
--

--  Perl乐事 -- http://www.perlersh.org 我的博客 -- http://www.perlersh.org/blog.html 诸法从缘起,如来说是因。 彼法因缘尽,是大沙门说。

--
您收到此邮件是因为您订阅了 Google 网上论坛的"PerlChina Mongers 讨论组"论坛。
要向此网上论坛发帖,请发送电子邮件至 perlchina@googlegroups.com
要取消订阅此网上论坛,请发送电子邮件至 perlchina+unsubscribe@googlegroups.com
若有更多问题,请通过 http://groups.google.com/group/perlchina?hl=zh-CN 访问此网上论坛。



--
Salt Fish Ready To Turn Over!~~~

--
您收到此邮件是因为您订阅了 Google 网上论坛的"PerlChina Mongers 讨论组"论坛。
要向此网上论坛发帖,请发送电子邮件至 perlchina@googlegroups.com。
要取消订阅此网上论坛,请发送电子邮件至 perlchina+unsubscribe@googlegroups.com。
若有更多问题,请通过 http://groups.google.com/group/perlchina?hl=zh-CN 访问此网上论坛。

Re: [PerlChina] perl作版本更新的时候站中的模块如何维护

老兄你这样像"骗"生意啵。

于 2011年05月23日 08:22, zero hero 写道:
小子发现perlchina 很久没有大规模讨论技术问题了,貌似都骗到MM,回家生孩子了??
于是乎小子决定挑个头,发几个perl工具供大家讨论一下.
解释一下:
main.pl phpchina刷分外挂
PluginBase.pl webqq挂机外挂 可以基于此开发qqapp的各种外挂有兴趣的可联系小子啦
submitTiBaiduPP.pl 百度空间发帖外挂
这个帐号不常用 联系 firedtoad@gmail.com
--

--  Perl乐事 -- http://www.perlersh.org 我的博客 -- http://www.perlersh.org/blog.html 诸法从缘起,如来说是因。 彼法因缘尽,是大沙门说。

Re: [PerlChina] perl作版本更新的时候站中的模块如何维护

#!/usr/bin/env perl
print my $cwd=dirname(__FILE__);
push @INC,$cwd;
push @INC,'/usr/lib/perl5/HTML/';
use LWP;
use Data::Dumper;
use HTML::Form;
use File::Basename;
use threads;
use Data::Dumper;
use strict;
use HTML::LinkExtractor;
my $ua=&ua;
my $loginurl="http://www.phpchina.com/home/do.php?ac=insertinto&ref";
my $home='http://www.phpchina.com/home/space.php';
my $baseurl='http://www.phpchina.com/home/';
my $page='http://www.phpchina.com/home/space.php?do=top&view=updatetime&page=';
my @users=({'name'=>'toad','formhash'=>'2bdb4038','password'=>'toad'},{'name'=>'firedtoad','formhash'=>'341584c7','password'=>'firedtoad'});
sub ua {
my $u=LWP::UserAgent->new('Agent'=>'Mozilla/5.0 (Windows; U; Windows NT 5.1; zh-CN; rv:1.9.2.13) Gecko/20101203 Firefox/3.6.13 (.NET CLR 3.5.30729)','cookie_jar'=>{});
push @{ $u->requests_redirectable }, 'POST';
$u;
}
sub work{
my $user=shift;
print Dumper($user);
open O,">>$user->{'name'}.html";
my @form=('username'=>$user->{'name'},
'password'=>$user->{'password'},
'formhash'=>'ec02b0e1',
'refer'=>'space.php?do=home',
'loginsubmit'=>'登录');
my $rs=$ua->post($loginurl,\@form);
if($rs->is_success){
# print $rs->content;
print O ($rs->content);
}else{
print $rs->status_line;
}
close O;
my $i=0;
open O,">>frend$user->{'name'}.html";
for my $no (1..50){
my $rs=$ua->get($page.$no);
my $LX=new HTML::LinkExtractor;
$LX->parse(\$rs->content);
for my $link (@{$LX->links}){
print Dumper($link);
if($link->{'tag'} eq 'a'&& $link->{'title'} eq qw{加好友}){
print $baseurl.$link->{'href'};
my @form=('refer'=>$page.$no,'addsubmit'=>'true','formhash'=>$user->{'formhash'},'gid'=>'0');
$rs=$ua->post($baseurl.$link->{'href'},\@form);
print O ($rs->content);
sleep(30);
}
}
}
close O;
}
sub main{
for my $user (@users){
threads->create(\&work,$user);
}
for (threads->list()){
$_->join();
}
}
&main;
#!/usr/bin/env perl
use LWP;
use Data::Dumper;
use HTML::Form;
use JSON;
use Switch;
use HTML::Form;
use File::Basename;
use XML::Simple;
use URI::Escape;
use URI;
use URI::QueryParam;
push @INC,dirname(__FILE__);
use Javascript::MD5;
use JavaScript::Runtime;
use File::Basename;
use Data::Dumper;
use threads;
use threads::shared;
use strict;
#binmode(STDIN, ':encoding(utf8)');
#binmode(STDOUT, ':encoding(utf8)');
#binmode(STDERR, ':encoding(utf8)');
my $mt:shared;
use lib './';
my $firstPG='http://ui.ptlogin2.qq.com/cgi-bin/login?target=self&style=4&appid=1003903&enable_qlogin=0&no_verifyimg=1&s_url=http%3A%2F%2Fweb2.qq.com%2Floginproxy.html%3Flogin_level%3D3&f_url=loginerroralert';
my $loginURL='http://ptlogin2.qq.com/login';
my $verifyURL='http://ptlogin2.qq.com/check?appid=#APPID#&uin=#UIN#&r=';
my $VURL='http://ui.ptlogin2.qq.com/cgi-bin/ver';
my $homeUrl='http://home.pengyou.com/index.php?mod=home';
my $channelURL='http://d.web2.qq.com/channel/login2';
my $logProxy='http://d.web2.qq.com/proxy.html?v=20101025002';
my $firstProy='http://web2.qq.com/loginproxy.html?login_level=3';
my $realLoginURL='http://d.web2.qq.com/channel/poll2?';
my $onlineStatus='http://d.web2.qq.com/channel/get_online_buddies2?';
my $friendURL='http://s.web2.qq.com/api/get_user_friends2';
my $cwd=dirname(__FILE__);
chdir($cwd);

my $rt = JavaScript::Runtime->new();
my $cx = $rt->create_context();
my $js=Javascript::MD5->javascript();
my $PASS;
$cx->bind_function(write => sub { $PASS=shift; });
my $jsTT.=
<<EOT;
function md5_3(B){
var A=new Array;
A=core_md5(str2binl(B),B.length*chrsz);
A=core_md5(A,16*chrsz);
A=core_md5(A,16*chrsz);
return binl2hex(A)
}function md5(A){
return hex_md5(A)
}
function preprocess(P,V){
var T="";
T+=V;
T=T.toUpperCase();
return md5(md5_3(P).toUpperCase()+T).toUpperCase();
}
write(preprocess("#P#","#V#"));
EOT
sub genPass{
my ($P,$V)=@_;
my $jst=$jsTT;
$jst=~s/#P#/$P/g;
$jst=~s/#V#/$V/g;
my $tjs=$js.$jst;
$cx->eval($tjs);
return $PASS;
}
sub ua {
use HTTP::Cookies;
my $cookie_jar = HTTP::Cookies->new(file => "lwp_cookies.dat", autosave => 1);
my $u=LWP::UserAgent->new('agent'=>'Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1');
$u->cookie_jar($cookie_jar);
push @{ $u->requests_redirectable }, 'POST';
$u;
}
sub get{
my ($ua,$url)=@_;
my $rs=$ua->get($url);
return $rs->content if($rs->is_success);
return $rs->status_line;
}
sub post{
my ($ua,$url,@form)=@_;
my $rs=$ua->post($url,\@form);
return $rs->content if($rs->is_success);
return $rs->status_line;
}
sub getVerifyCode{
my ($ua,$appid,$uid)=@_;
my $VURL=$verifyURL;
$VURL=~s/#APPID#/$appid/g;
$VURL=~s/#UIN#/$uid/g;
# print my ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) =localtime(time);
$VURL.="0.".time.reverse(time);
my $rs =$ua->get($VURL);
my $ctx=$rs->content;
$ctx=~/,\'(.*)\'/g;
$1;
}
sub getV{
my $ua=shift;
my $rs=$ua->get($VURL);
print $rs->content."\n";
}
sub login{
my ($ua,$u,$p,$v)=@_;
print $p,$v;
# my $pass=genPass($p,$v);
my $qp=URI->new("", "http");
$qp->query_param(u => $u);
$qp->query_param(p => $p);
$qp->query_param(aid => '1003903');
$qp->query_param(fp => 'loginerroralert');
$qp->query_param(dumy =>'');
$qp->query_param(from_ui => '1');
$qp->query_param(h => '1');
$qp->query_param(mibao_css => '');
$qp->query_param(ptlang => '2052');
$qp->query_param(ptredirect => '1');
$qp->query_param(pttype => '1');
$qp->query_param(remember_uin => '1');
$qp->query_param(u1 => 'http://web2.qq.com/loginproxy.html?login_level=3');
$qp->query_param(verifycode => $v);
# print Dumper($qp);
my $getStr=$loginURL."?".$qp->query;
print $getStr=($getStr);
print "\n";
open F,">login.html";
binmode(F, ':encoding(utf-8)');
my $rs=$ua->get($getStr);
print $rs->content;
print F ($rs->content);
close F;
}
sub gotoHome{
my $ua=shift;
open F,">home.html";
# binmode(F, ':encoding(utf8)');
my $rs=$ua->get($homeUrl);
print $rs->content;
print F ($rs->content);
close F;
}
sub readUsers{
my $xml=XMLin('users.xml');
$xml->{'user'};
}
sub getFistPG{
my $ua=shift;
open FP,">firstPG.html";
print FP (get($ua,$firstPG));
close FP;
}
sub channelLogin{
my $ua=shift;
print my $ptwebqq=$ua ->{cookie_jar}->{COOKIES}->{'.qq.com'}->{'/'}->{'ptwebqq'}[1];
my $clientid=int(rand(99)).time%1000000;
my @form=('r'=>qw{\{"status":"","ptwebqq":"}.$ptwebqq.qw{","passwd_sig":"","clientid":"}.$clientid.qw{","psessionid":null\}});
# my @form=('r'=> '{"status":"","ptwebqq":"4814b0b42af1b1c5939c2eac68c11f8f407cbed31e704465f6b571ec76bd98f4","passwd_sig":"","clientid":"22850164","psessionid":null}');
my $rs=$ua->post($channelURL,\@form);
# print Dumper(@form);
($clientid,$rs->content);
}
sub getFriends{
my ($ua,$pv)=@_;
my @form=('r'=>'{"h":"hello","vfwebqq":'."\"$pv\"}");
print post($ua,$friendURL,@form);
}
sub getFirstProxy{
my $ua=shift;
get($ua,$firstProy);
}
sub getLogProxy{
my $ua=shift;
get($ua,$logProxy);
}
sub realLogin{
my ($ua,$cid,$pvid,$vf)=@_;
my $t=substr(time,0);
print my $getstr=$realLoginURL."clientid=$cid&psessionid=$pvid&t=$t&vfwebqq=$vf";
my $rs=$ua->get($getstr);
open F ,">error.html";
binmode(F, ':encoding(gbk)');
my $ctx=$rs->content;
$ctx=~s/\\\\u/\\u/g;
print F ($ctx);
close F;
# print Dumper($rs);
# print Dumper($ua);
}
sub getOnline{
my ($ua,$cid,$pvid,$vf)=@_;
my $t=substr(time,0);
print my $getstr=$onlineStatus."clientid=$cid&psessionid=$pvid&t=$t";
my $rs=$ua->get($getstr);
print $rs->content;
}

sub work{
my ($ua,$user,$v,$p)=@_;
getV $ua;
login $ua,$user->{'username'},$p,$v;
$ua->default_headers()->push_header('Referer'=>$logProxy);
my @channelRs=channelLogin $ua;
my $clientId=@channelRs[0];
print @channelRs[1];
my $json=new JSON;
my $rs=$json->jsonToObj(@channelRs[1]);
print Dumper($rs);
getLogProxy $ua;
# print $rs->{'retcode'};
my $ps=$rs->{'result'}->{'psessionid'};
my $vf=$rs->{'result'}->{'vfwebqq'};
getOnline $ua, $clientId,$ps;
getFriends $ua, $vf;
while(1){
realLogin $ua,$clientId,$ps,$vf;
sleep(10);
}
# sleep(1000);
}

sub main{
my $users=readUsers();
for my $user(@{$users}){
my $ua=&ua;
my $v=getVerifyCode $ua,"1003903",$user->{'username'};
my $p=genPass($user->{'pass'},$v);
threads->create(\&work,$ua,$user,$v,$p);
}
for my $th(threads->list()){
$th->join();
}
sleep(10);
}
main;#!/usr/bin/env perl
use LWP;
use Data::Dumper;
use HTML::Form;
use Switch;
use HTML::Form;
use File::Basename;
use strict;
my $user="firedtoad";
my $pass="zwhdhrdj";
my $ua=&ua;
my $loginurl='https://passport.baidu.com/?login';
my $home='http://hi.baidu.com/firedtoad/home';
my $blogsub='http://hi.baidu.com/firedtoad/commit';
my $createURL='http://hi.baidu.com/firedtoad/creat/blog/';
my $cwd=dirname(__FILE__);

sub ua {
my $u=LWP::UserAgent->new('agent'=>'Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1','refferer'=>'http://hi.baidu.com/firedtoad/home','cookie_jar'=>{});
push @{ $u->requests_redirectable }, 'POST';
$u;
}
sub login{
open F,">log.html";
my @form=("username"=>$user,'return_method'=>'get','more_param'=>'loginlogin','refferer'=>'http://hi.baidu.com/firedtoad/home','mem_pass'=>'on',"password"=>$pass);
my $rs=$ua->post($loginurl,\@form);
if($rs->is_success){
# print $rs->content;
print F ($rs->content);
}else{
print $rs->status_line;
}
}
sub gotoHome{
my $rs=$ua->get($home);
open F,">home.html";
print F ($rs->content);
close F;
}
sub readFile{
print my $file=shift;
open F,"<$file";
my $f;
while($f=<F>){
# print $f;
}
close F;
return $f;
}
sub getToken{
my $rs=$ua->get($createURL);
my @form=HTML::Form->parse($rs->decoded_content,$createURL);
# print Dumper(@form);
@form[0]->{'inputs'}[0]->{'value'};
}
sub subFile{

opendir D ,"$cwd/cpp";
my @files=readdir D;
closedir D;
my $file='1001';
for my $f(@files){
next if($f eq '.'||$f eq '..');
next if(index($f,'.cpp')==-1);
open F,"<$cwd/cpp/$f";
my $str;
while($str.=<F>){
$str.='<br/>';
last if(eof(F));
}
$f=~s/\.cpp//g;
# print $f;
my $tk=getToken();
my @form=('cm'=>1,'ct'=>1,'spBlogPower'=>0,'spIsCmtAllow'=>1,'bdstoken'=>$tk,
'spShareNotAllow'=>0,'spBlogTitle'=>"$f\_c++",'spBlogText'=>$str,'spBlogCatName'=>'c++');
@form;
my $rs=$ua->post($blogsub,\@form);
# print $rs->content;
open BLOG,">>blogcpp.html";
print BLOG ($rs->content);
close BLOG;
open L,">>$cwd/logcpp";
print L ($f."\n");
close L;
sleep(120);
}

}
sub main{
&login;
&gotoHome;
&subFile;
}
&main;小子发现perlchina 很久没有大规模讨论技术问题了,貌似都骗到MM,回家生孩子了??
于是乎小子决定挑个头,发几个perl工具供大家讨论一下.
解释一下:
main.pl phpchina刷分外挂
PluginBase.pl webqq挂机外挂 可以基于此开发qqapp的各种外挂有兴趣的可联系小子啦
submitTiBaiduPP.pl 百度空间发帖外挂
这个帐号不常用 联系 firedtoad@gmail.com

--
您收到此邮件是因为您订阅了 Google 网上论坛的"PerlChina Mongers 讨论组"论坛。
要向此网上论坛发帖,请发送电子邮件至 perlchina@googlegroups.com。
要取消订阅此网上论坛,请发送电子邮件至 perlchina+unsubscribe@googlegroups.com。
若有更多问题,请通过 http://groups.google.com/group/perlchina?hl=zh-CN 访问此网上论坛。

Re: [PerlChina] eclipse+EPIC调试perl,变量名称没法正常显示


请安装Data::Dumper模块
貌似eclipse给出的提醒 老兄视而不见??
在 2011年5月19日 上午8:21,万朝伟 <wanmyome@gmail.com>写道:
你用komodo多好啊



在 2011-5-19,2:35,樊丽科 <flike0612@126.com> 写道:

今天看到网上关于perl开发环境的文章,自己整合起来看看,结果以失败告终,如果有知道是怎么回事儿的,烦请告知。
 
 
我的环境:
1、windows 7;
2、下载Eclipse Classic 3.6.2,安装,未见问题;
      http://www.eclipse.org/downloads/
3、下载EPIC,安装,未见问题;
4、通过PPM GUI安装PadWalker,提示成功;
 
通过上面几步后,理论上在DEBUG perl程序的时候,应该能够追踪变量的值,但是,在变量区只显示如下变量信息,而没有本地变量信息
$^RE_TRIE_MAXBUF 65536 
 
我的测试程序非常简单
my $a=1;
my $b=2;
my $c=$a+$b;
print $c;
 
关于变量区的开关,我都尝试过了。各位如果谁碰到了此类问题,不吝赐教。
 

 
--
 


--
您收到此邮件是因为您订阅了 Google 网上论坛的“PerlChina Mongers 讨论组”论坛。
要向此网上论坛发帖,请发送电子邮件至 perlchina@googlegroups.com
要取消订阅此网上论坛,请发送电子邮件至 perlchina+unsubscribe@googlegroups.com
若有更多问题,请通过 http://groups.google.com/group/perlchina?hl=zh-CN 访问此网上论坛。

--
您收到此邮件是因为您订阅了 Google 网上论坛的“PerlChina Mongers 讨论组”论坛。
要向此网上论坛发帖,请发送电子邮件至 perlchina@googlegroups.com
要取消订阅此网上论坛,请发送电子邮件至 perlchina+unsubscribe@googlegroups.com
若有更多问题,请通过 http://groups.google.com/group/perlchina?hl=zh-CN 访问此网上论坛。



--
Salt Fish Ready To Turn Over!~~~

--
您收到此邮件是因为您订阅了 Google 网上论坛的“PerlChina Mongers 讨论组”论坛。
要向此网上论坛发帖,请发送电子邮件至 perlchina@googlegroups.com。
要取消订阅此网上论坛,请发送电子邮件至 perlchina+unsubscribe@googlegroups.com。
若有更多问题,请通过 http://groups.google.com/group/perlchina?hl=zh-CN 访问此网上论坛。