随笔分类 -  perl

摘要:当我们想使用某些Perl模块的时候,很可能会遇到当前系统不存在这个模块的情况,这时我们可以通过使用CPAN来对相应的模块进行获取,下面就介绍一下CPAN的使用方法。首先,我们可以用perl -e 'use module'这个命令来检查一下系统的perl的某个模块是否可用,如[root@localhost ~]# perl -e 'use Test::Parser'Can't locate Test/Parser.pm in @INC (......更多报错信息自动略过) at -e line 1.BEGIN failed--compilation abo 阅读全文

posted @ 2014-04-09 17:43 陆星儿 阅读(1170) 评论(0) 推荐(0)

摘要:1, 在Eclipse中安装EPIC:Help->Install New Software->Add:name:EPICLocation:http://e-p-i-c.sourceforge.net/updates/testing2, 安装Padwalker:PadWalker is a module which allows you to inspect (and even change!)lexical variables in any subroutine which called you. It will only showthose variables which are 阅读全文

posted @ 2013-12-04 16:52 陆星儿 阅读(455) 评论(0) 推荐(0)

摘要:1,利用Tie::File模块来直接对文件内容进行修改。#!/usr/bin/perl -wmy $std="F160";my $fast="FAST";my $file=shift @ARGV;updatefile2($file);sub updatefile2 {if(defined($file)) { use Tie::File; tie my @contents, 'Tie::File', "$file" or die "can't open $!\n"; for(@contents 阅读全文

posted @ 2013-11-28 14:19 陆星儿 阅读(2337) 评论(0) 推荐(0)

导航