LoveApple >> 学习资料

学习资料

收集学习资料

perl程序属于解释执行语言,在运行前需要经过解释器解析编译后执行,怎么查看当前默认的perl解释器版本呢?

在类unix系统下面打开任意一个终端窗口,输入:perl -v 回车就可以看到类似如下信息:

iMac:os Alex$ perl -v

This is perl 5, version 12, subversion 3 (v5.12.3) built for darwin-thread-multi-2level
(with 2 registered patches, see perl -V for more detail)

Copyright 1987-2010, Larry Wall

Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 5 source kit.

Complete documentation for Perl, including FAQ lists, should be found on
this system using "man perl" or "perldoc perl".  If you have access to the
Internet, point your browser at http://www.perl.org/, the Perl Home Page.

继续阅读 »

mysql中经常会在多个表格中实现关联查询,如现有两个表为username和save_jobs,查询结果需要综合多个表中的若干字段,可以写查询代码为:

SELECT 'username'.'name','save_jobs'.'JobName','save_jobs'.'DateTime'
FROM username,save_jobs
WHERE (
(
save_jobs.JobName LIKE '%80481%'
)
AND (
username.uid = save_jobs.UserName
)
)
LIMIT 0,30

结果每个字段需要写明表名,如’username’.'name’

© 2005-2011 LoveApple浙ICP备05080468号 推荐使用SafariChromeIE9Opera浏览器1024X768分辨率浏览 LoveApple