
Perl
小博
人生的道路上,两旁也许有很多迷人的风光,只会偶尔停下来欣赏一番,他们只是点缀,不是目的,为了远方的目标,唯有背上行囊,继续上路。
展开
-
shell和perl
shell是一个解释“程序”,专门用来解释执行各种命令; perl是一种脚本语言,用它写出来的脚本程序可以通过shell来解释执行;Perl是什么一、Perl是什么?Perl是Practical Extraction and Report Language的缩写,它是由Larry Wall设计的,并由他不断更新和维护,用于在UNIX环境下编程。.Perl转载 2012-08-04 17:20:41 · 3843 阅读 · 0 评论 -
Shell向Perl脚本中传递变量的方法
方法一:In shell using export to output a variable, and in perl using special variable %ENV to get shell's variables.i.e.:--- shell box---$ \bin\ksh# export x=Foo# perl -e 'print $ENV{"x"}'-转载 2012-08-04 17:14:40 · 4376 阅读 · 0 评论 -
Can't load Oracle.so for module DBD::Oracle
在使用perl连接数据库的时候出现错误如下:如果是在oracle用户下执行没有问题,初步怀疑是环境变量配置关系 [oracle@test ~]$ more /Application/monitor/noc/db.poolinstall_driver(Oracle) failed: Can't load '/usr/lib/perl5/site_perl/5.8.5/i386-lin转载 2012-11-27 16:41:07 · 2467 阅读 · 0 评论 -
perl unicode处理
convert to UTF8?I'm trying to fix an issue for someone who's using a meta-search engine on a French web site. The data being pulled in, I would have assumed, should already be in UTF-8, since the转载 2012-12-19 16:16:54 · 697 阅读 · 0 评论 -
perl 删除过期文件
#!/usr/bin/perl #---------------------------------------------------------use strict;my $dir = "dirname/";opendir DH, $dir or die "cannot chdir to $dir : $!";for my $file (readdir DH){ ($file eq '.转载 2013-01-09 11:28:49 · 1135 阅读 · 1 评论