韩半仙

  博客园  ::  :: 新随笔  ::  :: 订阅 订阅  :: 管理

2012年3月11日

摘要: string.pl#!/usr/bin/perl#usestrict;usewarnings;main(@ARGV);submain{my$string="thisisastring\n";print$string;chomp$string;message("[$string]");chop$string;message("[$string]");my$s2=uc$string;message($s2);$s2=lc$string;message($s2);$s2=substr($string,5,2);message($s2);$s 阅读全文
posted @ 2012-03-11 23:54 韩英武 阅读(298) 评论(0) 推荐(0)

摘要: understanding blocks and streamsthere are two ways to look at files-blocks of data-stream a block of data simply a chunk of the file that can be written or read in one operation.a stream is data that may come as a series of bytes- keystrokes from a user- data sent over a network connection handles.p 阅读全文
posted @ 2012-03-11 16:16 韩英武 阅读(535) 评论(0) 推荐(0)