加入收藏 | 设为首页 | Life家族 | SCMLife | RMLife | PMLife | SQALife | TESTLife | 企业VIP专区 | 中文化荣誉殿堂
 
发新话题
打印

[讨论] 关于perl中的疑问,请在此更贴提问!( 此文章被查看:7310次,被回复:27篇!! )

perl是否需要到apache网站下载?在clearcase中如何使用?

© 本文为 somis 所有,未经同意,请勿转载
©如该文侵犯了您的版权,请联系管理员

TOP

回复 #9 among 的帖子

不知道among可以回复得详细一些么?是用哪个MIME模块呢?而且现在还有个问题,在clearcase安装后自带的ccperl中怎么添加模块呢?一直困惑中…………
谢谢帮助~~

© 本文为 blue_gugu 所有,未经同意,请勿转载
©如该文侵犯了您的版权,请联系管理员
我的MSN: blue_gugu@hotmail.com
不经意间,来到这里,乱花迷眼,且走且行。。。

TOP

引用:
原帖由 blue_gugu 于 2007-6-21 12:05 发表
不知道among可以回复得详细一些么?是用哪个MIME模块呢?而且现在还有个问题,在clearcase安装后自带的ccperl中怎么添加模块呢?一直困惑中…………
谢谢帮助~~
我的办法是:安装完perl的模块后把安装路径拷贝过去就可以用ccperl了
如:
cp -r /usr/lib/perl5/site_perl/5.8.5/Spreadsheet /opt/rational/common/lib/perl5/site_perl/5.8.6/

© 本文为 happygod 所有,未经同意,请勿转载
©如该文侵犯了您的版权,请联系管理员

TOP


© 本文为 tommy 所有,未经同意,请勿转载
©如该文侵犯了您的版权,请联系管理员

TOP

引用:
原帖由 tommy 于 2007-7-17 09:53 发表
www.perl.com
谢谢!

现在找本 Perl的书真是难,查下网上书店,都是2003年以前的,基本都没有库存了。

© 本文为 somis 所有,未经同意,请勿转载
©如该文侵犯了您的版权,请联系管理员

TOP

引用:
原帖由 x518889 于 2007-3-13 19:43 发表
能不能给大家推荐一下比较好的perl介绍资料,我找了一下都不是很理想,不知道大家有没有,共享一下吧!
参见
http://bbs.scmlife.com/thread-5675-1-1.html

提供几本Perl中文电子书

© 本文为 somis 所有,未经同意,请勿转载
©如该文侵犯了您的版权,请联系管理员

TOP

share一份不错的perl文档

Learning Perl 3rd Edition, 跟大家share一下:)

附件

Learning Perl 3rd Edition.chm (670.35 KB, 2007-9-11 22:11)

关于附件奖励, 下载次数 13, 使用阶层: 通用 , 推荐星级: , 出售价格: 2 金钱 , 你的购买价格: 2 金钱,【快速获取积分

Learning Perl


© 本文为 freelady 所有,未经同意,请勿转载
©如该文侵犯了您的版权,请联系管理员

TOP

Perl语言入门

补充一个: Perl语言入门,这个是中文的。
引用:
原帖由 freelady 于 2007-9-11 22:11 发表
Learning Perl 3rd Edition, 跟大家share一下:)

© 本文为 freelady 所有,未经同意,请勿转载
©如该文侵犯了您的版权,请联系管理员

TOP

perl 或者shell 编程都要学习啊 ,在UNIX下开发,整个环境还是需要一套的

© 本文为 ManUtd_Giggs 所有,未经同意,请勿转载
©如该文侵犯了您的版权,请联系管理员

TOP

回复 沙发 的帖子

Try, It works well on my PC. The content is stored in your file which is named "testfile.txt"

#!/usr/local/bin/perl
use warnings;
use strict;

my @TXT = ();
my @user = ();
my $line;
my $name1 = shift(@ARGV);
my $name2 = shift(@ARGV);
my $changed_line;
# `sed -i -e 's!active!inactive!g' testfile.txt`;
&search_name($name1, $name2);
#######################################################

sub search_name {

my($head1, $head2) = @_;

open (FH, "+<testfile.txt") || die ("cannot open the file\n");

@TXT = <FH>;

#print FH "nihao";
#print"wang yang 2: the content is $TXT[0]\n";
  foreach $line(@TXT)
     {           
                 chomp($line);
                 open(FH2, ">>tempfile.txt") || die ("cannot open the temp file\n");
                 if ($line =~ m/$head1/i){
                                      print"find the person $head1 in this file !\n";
                                      print "The content of this line is: $line\n";
                                      $line =~s/active/inactive/g;
                 #                     print " wang yang:$line\n";
                                      print"####Go on continue to find other persons########\n\n";
                                      $line .="\n";
                                      print FH2 $line;
                                          }
                elsif ($line =~ m/$head2/) {
                                      print"find the person $head2 in this file !\n";
                                      print "The content of this line is: $line\n";
                                      $line =~s/active/inactive/g;
                                      $line .="\n";
                                      print FH2 $line;
                                            }
                else {
                        print"Mismatch\n";
                        $line .="\n";
                        print FH2 $line;}
                                   #    my $curpos = tell(FH);
                                   #    seek(FH, $curpos, 0);
               close FH2;                                                         
        }
close FH;
system("rm -f testfile.txt");
system("mv tempfile.txt textfile.txt");

}

© 本文为 winnie_yang 所有,未经同意,请勿转载
©如该文侵犯了您的版权,请联系管理员

TOP

发新话题