会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
英雄协会
对微服务、分布式、大数据都感兴趣
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
4
5
6
7
8
9
10
11
12
下一页
2012年12月11日
perl 的Class::MethodMaker
摘要: 看到perl inter 进展缓慢,不过也不着急,看看这个模块的文档吧,虽然现在有很多OO的模块,我先看这个的。基础牢固了再去看那些复杂的,后面想看看anyevent,template tootkit ,dancer ,mojo, catalyst, PSGI/Pla...
阅读全文
posted @ 2012-12-11 16:40 程序员杰诺斯
阅读(239)
评论(0)
推荐(0)
2012年12月10日
perl中的UNIVERSAL 和AUTOLOAD
摘要: 看到intermediate perl 14章,里面提到几个问题, 在网上的一些帖子(其他书)上看到一些和书上不对应的地方,于是自己测试了一下,inter perl上写的是正确的。梳理一下如下:Do all objects inherit from a common ...
阅读全文
posted @ 2012-12-10 15:43 程序员杰诺斯
阅读(175)
评论(0)
推荐(0)
2012年12月3日
my, our, local 以及 typeglob(转)
摘要: 写在前面,our local 是声明包符号表的变量, my 的变量不在符号表中。这也产生了很多例子来说明他们说。1.查看符号表our $var;my $va;local $ss;foreach (keys %main::){ print $_, "\n";}2....
阅读全文
posted @ 2012-12-03 22:15 程序员杰诺斯
阅读(161)
评论(0)
推荐(0)
perl中的typeglob(二)
摘要: http://perldoc.perl.org/perldata.html#Typeglobs-and-Filehandles1.typeglobs 和文件句柄上回说到,有符号表这么个东西, 一个符号b 映射一个 glob,里面可以有多个变量,相当一个1对多的hash...
阅读全文
posted @ 2012-12-03 21:51 程序员杰诺斯
阅读(266)
评论(0)
推荐(0)
perl中的typeglob
摘要: 写在前面: perl中有引用,所以大部分情况不需要typeglob.以前看到了例子也不想多了解,今天看到群里有讨论到,就仔细阅读一下弄懂。 http://perldoc.perl.org/perldata.html#Typeglobs-and-Filehandlesh...
阅读全文
posted @ 2012-12-03 18:39 程序员杰诺斯
阅读(389)
评论(0)
推荐(0)
2012年11月29日
在 Perl 中使用 Getopt::Long 模块来接收用户命令行参数
摘要: 转自 http://www.php-oa.com/2009/04/04/perl_getopt-long.html 写在前面,支持长参和短参,较为简单好用。 optionname 可以是字母,数字和 dash(-),不允许连续的dash,和dash结尾。更详细见:h...
阅读全文
posted @ 2012-11-29 17:45 程序员杰诺斯
阅读(149)
评论(0)
推荐(0)
2012年11月26日
[LeeCode]Edit Distance
摘要: Given two words word1 and word2, find the minimum number of steps required to convert word1 to word2. (each operation is counted as 1 ...
阅读全文
posted @ 2012-11-26 17:41 程序员杰诺斯
阅读(128)
评论(0)
推荐(0)
[LeetCode]Divide Two Integers
摘要: Divide two integers without using multiplication, division and mod operator.思路:先想到的是做减法,但是效率在两数差距大的时候复杂度很高, 之后想到移位的方式,把除数和余数提...
阅读全文
posted @ 2012-11-26 17:01 程序员杰诺斯
阅读(110)
评论(0)
推荐(0)
2012年11月25日
[LeetCode]Distinct Subsequences
摘要: Given a string S and a string T, count the number of distinct subsequences of T in S.A subsequence of a string is a new string which i...
阅读全文
posted @ 2012-11-25 23:05 程序员杰诺斯
阅读(122)
评论(0)
推荐(0)
2012年11月15日
[LeetCode]Decode Ways
摘要: A message containing letters from A-Z is being encoded to numbers using the following mapping:'A' -> 1'B' -> 2...'Z' -> 26Given an enc...
阅读全文
posted @ 2012-11-15 11:41 程序员杰诺斯
阅读(115)
评论(0)
推荐(0)
上一页
1
···
4
5
6
7
8
9
10
11
12
下一页
公告