<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="zh-CN">

<head profile="http://gmpg.org/xfn/11">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />

<title>free   birdie </title>
	
<meta http-equiv="imagetoolbar" content="no" />

<link rel="stylesheet" href="http://www.freebirdie.net/wp-content/themes/meadowland/style.css" type="text/css" media="screen" />

<link rel="alternate" type="application/rss+xml" title="free   birdie RSS Feed" href="http://www.freebirdie.net/?feed=rss2" />

<link rel="pingback" href="http://www.freebirdie.net/xmlrpc.php" />

	<style type="text/css" media="screen">
	
body{
	background: #aaa url("http://www.freebirdie.net/wp-content/themes/meadowland/images/bg.gif");
				}
	
#header{
	background:  url("http://www.freebirdie.net/wp-content/themes/meadowland/images/header.jpg") repeat-x;
				}
	
.menu ul li.widget ul li{
	 background: url("http://www.freebirdie.net/wp-content/themes/meadowland/images/listbullet.gif") no-repeat 0 2px;

				}
				

				
	</style>
	
		<script type="text/javascript" src="http://www.freebirdie.net/wp-content/themes/meadowland/scripts/utils.js"></script>
	
<link rel="EditURI" type="application/rsd+xml" title="RSD" href="http://www.freebirdie.net/xmlrpc.php?rsd" />
<link rel="wlwmanifest" type="application/wlwmanifest+xml" href="http://www.freebirdie.net/wp-includes/wlwmanifest.xml" /> 
<link rel='index' title='free   birdie' href='http://www.freebirdie.net' />
<meta name="generator" content="WordPress 3.0.1" />
	<style type="text/css">.recentcomments a{display:inline !important;padding:0 !important;margin:0 !important;}</style>

</head>
<body>


<div id="wrapper">


<div id="header">
	

	
		
	
	
		<h3><a href="http://www.freebirdie.net/">free   birdie</a></h3>

		
			<h2>与其用泪水悔恨今天，不如用汗水拼搏今天</h2>
		

</div>


<div id="tabs">

<ul>
				<li><a href="http://www.freebirdie.net/">首页</a></li>
				<li class="page_item page-item-2"><a href="http://www.freebirdie.net/?page_id=2" title="关于">关于</a></li>
			</ul>

</div>
		



<div id="content">
	<div id="content-inner">

<div id="main">

		
				
	<div class="post" id="post-36">
	<div class="entry">

		<h2><a href="http://www.freebirdie.net/?p=36" rel="bookmark" title="Permanent Link to Perl中use和require用法比较">Perl中use和require用法比较</a></h2>

				<p>相同点：</p>
<p>ues和require函数都可以加载和引用Perl的模块，子程序；</p>
<p>区别：</p>
<p>1. use引用的文件不需要后缀名，而require需要</p>
<p>2. use是在编译是引入的，而require是在运行时引入的</p>
<p>3. use引入模块的同时，也引入了模块的子模块，而require则不行，需要重新引入</p>
<p>4. use是在当前默认的里面去寻找，一旦模块不在指定的区域内，use是不可以引入的</p>
		</div>
	
	
	
		<div class="postmetadata">
		 		 		  	<p>Tags: <a href="http://www.freebirdie.net/?tag=perl" rel="tag">Perl</a></p>
						
			<p>分类：<img style="vertical-align:-5px;" alt="categories" src="http://www.freebirdie.net/wp-content/themes/meadowland/images/category.gif" height="16" width="16" /> <a href="http://www.freebirdie.net/?cat=9" title="查看 Perl 的全部文章" rel="category">Perl</a> | By &nbsp<a href="http://www.freebirdie.net/?author=1" title="由 birdie 发表">birdie</a> 2010年08月4日   | <img style="vertical-align:-5px;" alt="comments" src="http://www.freebirdie.net/wp-content/themes/meadowland/images/comment.gif" height="16" width="16" /> <a href="http://www.freebirdie.net/?p=36#respond" title="Perl中use和require用法比较 上的评论">Comments (0)</a> </p>
			
			</div> 

		
				
		
		</div>
		
		


				
	<div class="post" id="post-33">
	<div class="entry">

		<h2><a href="http://www.freebirdie.net/?p=33" rel="bookmark" title="Permanent Link to Perl中三种变量小结">Perl中三种变量小结</a></h2>

				<p>Perl中变量有三种：标量（$），数组（@），hash又称关联数组（%）。</p>
<p>变量作用域：</p>
<p>our 定义全局变量</p>
<p>my 定义局部变量</p>
<p>标量（$）  $name=&#8221;value&#8221;</p>
<p>1. 字符相加不是用“+”，而是用“ . ”，和PHP相同</p>
<p>2. 字符串和数值的运算符不一样</p>
<p>3 . $_   默认的参数</p>
<p>数组（@）@name=(&#8220;value0&#8243; , &#8220;value1&#8243; , &#8220;value2&#8243;)</p>
<p>1. 数组下标是从“0”开始</p>
<p>2. 访问数组 $name[2]</p>
<p>3. @_   函数传参时放置参数的数组</p>
<p>4. @ARGV  存储所有命令行参数</p>
<p>Hash（%）%name=(&#8220;key1&#8243; , &#8220;value1&#8243; , &#8220;key2&#8243; ,&#8221;value2&#8243;)或(&#8220;key1&#8243;=&gt;&#8221;value1&#8243; , &#8220;key2&#8243;=&gt;&#8221;value2&#8243;)</p>
<p>1. 哈希（关联数组）中的元素是无序的，Key是能够访问他们的唯一通道</p>
<p>2. 访问哈希中的元素 $name{&#8220;key1&#8243;}</p>
<p style="padding-left: 30px;">
		</div>
	
	
	
		<div class="postmetadata">
		 		 		  	<p>Tags: <a href="http://www.freebirdie.net/?tag=perl" rel="tag">Perl</a></p>
						
			<p>分类：<img style="vertical-align:-5px;" alt="categories" src="http://www.freebirdie.net/wp-content/themes/meadowland/images/category.gif" height="16" width="16" /> <a href="http://www.freebirdie.net/?cat=9" title="查看 Perl 的全部文章" rel="category">Perl</a> | By &nbsp<a href="http://www.freebirdie.net/?author=1" title="由 birdie 发表">birdie</a> 2010年08月1日   | <img style="vertical-align:-5px;" alt="comments" src="http://www.freebirdie.net/wp-content/themes/meadowland/images/comment.gif" height="16" width="16" /> <a href="http://www.freebirdie.net/?p=33#respond" title="Perl中三种变量小结 上的评论">Comments (0)</a> </p>
			
			</div> 

		
				
		
		</div>
		
		


				
	<div class="post" id="post-27">
	<div class="entry">

		<h2><a href="http://www.freebirdie.net/?p=27" rel="bookmark" title="Permanent Link to 暑假深圳华大基因实习">暑假深圳华大基因实习</a></h2>

				<p>昨天晚上收到通知，我去面试的华大基因暑期实习班通过了啊！</p>
<p>暑假可以免费在深圳呆一个月，太爽了啊</p>
		</div>
	
	
	
		<div class="postmetadata">
		 		 		  	<p>Tags: <a href="http://www.freebirdie.net/?tag=%e5%ae%9e%e4%b9%a0" rel="tag">实习</a></p>
						
			<p>分类：<img style="vertical-align:-5px;" alt="categories" src="http://www.freebirdie.net/wp-content/themes/meadowland/images/category.gif" height="16" width="16" /> <a href="http://www.freebirdie.net/?cat=7" title="查看 我的生活 的全部文章" rel="category">我的生活</a> | By &nbsp<a href="http://www.freebirdie.net/?author=1" title="由 birdie 发表">birdie</a> 2010年06月16日   | <img style="vertical-align:-5px;" alt="comments" src="http://www.freebirdie.net/wp-content/themes/meadowland/images/comment.gif" height="16" width="16" /> <a href="http://www.freebirdie.net/?p=27#respond" title="暑假深圳华大基因实习 上的评论">Comments (0)</a> </p>
			
			</div> 

		
				
		
		</div>
		
		


				
	<div class="post" id="post-25">
	<div class="entry">

		<h2><a href="http://www.freebirdie.net/?p=25" rel="bookmark" title="Permanent Link to Linux常用文件目录">Linux常用文件目录</a></h2>

				<p>/root 保存系统的引导相关的文件：内核文件，引导文件（grub）</p>
<p>/etc  系统常用的配置文件：系统管理员需要修改的文件，决定系统行为的配置文件</p>
<p>/bin  用户常用的命令：文件和目录的操作命令，所用用户都可以使用</p>
<p>/sbin 保存系统维护所使用的命令文件：很多命令普通用户都不能使用</p>
<p>/lib   系统运行所需要的库文件：静态库：.a；动态库：.so</p>
<p>/dev  系统设备文件  /dev/cdrom  /dev/had</p>
<p>/var   保存变化的文件：日志文件，脱机文件</p>
<p>/mnt  系统用来安装文件系统设备目录：光盘，U盘</p>
<p>/proc  系统内存/CPU的映射：不占用空间</p>
<p>/tmp  保存系统运行时产生的临时文件</p>
<p>/usr   系统中保存与用户相关的信息：最大的文件</p>
<p>/home  系统中普通用户主目录</p>
<p>/root   系统中超级用户的主目录</p>
		</div>
	
	
	
		<div class="postmetadata">
		 		 		  	<p>Tags: <a href="http://www.freebirdie.net/?tag=linux" rel="tag">Linux</a></p>
						
			<p>分类：<img style="vertical-align:-5px;" alt="categories" src="http://www.freebirdie.net/wp-content/themes/meadowland/images/category.gif" height="16" width="16" /> <a href="http://www.freebirdie.net/?cat=1" title="查看 Linux 的全部文章" rel="category">Linux</a> | By &nbsp<a href="http://www.freebirdie.net/?author=1" title="由 birdie 发表">birdie</a>    | <img style="vertical-align:-5px;" alt="comments" src="http://www.freebirdie.net/wp-content/themes/meadowland/images/comment.gif" height="16" width="16" /> <a href="http://www.freebirdie.net/?p=25#respond" title="Linux常用文件目录 上的评论">Comments (0)</a> </p>
			
			</div> 

		
				
		
		</div>
		
		


	
	
	
	<div id="navigation">
			<div class="fleft"></div>
					<div class="fright"> </div>
	</div>
			
	

		
	

	
	</div> <!-- eof main -->

<!-- begin sidebar -->
<div id="sidebar">


<div id="subscribe">

	<p><img style="vertical-align:-2px;" alt="RSS" src="http://www.freebirdie.net/wp-content/themes/meadowland/images/feed-icon-16x16.gif" /> &nbsp;<a href="http://www.freebirdie.net/?feed=rss2">文章 RSS</a> | <a href="http://www.freebirdie.net/?feed=comments-rss2">评论 RSS</a></p>

</div>


<div class="menu">

<ul>

<li id="calendar-3" class="widget widget_calendar"><h3>&nbsp;</h3><div id="calendar_wrap"><table id="wp-calendar" summary="日历">
	<caption>2010 十月</caption>
	<thead>
	<tr>
		<th scope="col" title="星期一">一</th>
		<th scope="col" title="星期二">二</th>
		<th scope="col" title="星期三">三</th>
		<th scope="col" title="星期四">四</th>
		<th scope="col" title="星期五">五</th>
		<th scope="col" title="星期六">六</th>
		<th scope="col" title="星期日">日</th>
	</tr>
	</thead>

	<tfoot>
	<tr>
		<td colspan="3" id="prev"><a href="http://www.freebirdie.net/?m=201008" title="查看 2010 八月 的文章">&laquo; 八</a></td>
		<td class="pad">&nbsp;</td>
		<td colspan="3" id="next" class="pad">&nbsp;</td>
	</tr>
	</tfoot>

	<tbody>
	<tr>
		<td colspan="4" class="pad">&nbsp;</td><td>1</td><td>2</td><td>3</td>
	</tr>
	<tr>
		<td>4</td><td>5</td><td>6</td><td>7</td><td>8</td><td>9</td><td>10</td>
	</tr>
	<tr>
		<td>11</td><td>12</td><td>13</td><td>14</td><td>15</td><td>16</td><td>17</td>
	</tr>
	<tr>
		<td>18</td><td>19</td><td>20</td><td id="today">21</td><td>22</td><td>23</td><td>24</td>
	</tr>
	<tr>
		<td>25</td><td>26</td><td>27</td><td>28</td><td>29</td><td>30</td><td>31</td>
	</tr>
	</tbody>
	</table></div></li>		<li id="recent-posts-3" class="widget widget_recent_entries">		<h3>最近文章</h3>		<ul>
				<li><a href="http://www.freebirdie.net/?p=36" title="Perl中use和require用法比较">Perl中use和require用法比较</a></li>
				<li><a href="http://www.freebirdie.net/?p=33" title="Perl中三种变量小结">Perl中三种变量小结</a></li>
				<li><a href="http://www.freebirdie.net/?p=27" title="暑假深圳华大基因实习">暑假深圳华大基因实习</a></li>
				<li><a href="http://www.freebirdie.net/?p=25" title="Linux常用文件目录">Linux常用文件目录</a></li>
				</ul>
		</li><li id="recent-comments-3" class="widget widget_recent_comments"><h3>近期评论</h3><ul id="recentcomments"></ul></li><li id="categories-3" class="widget widget_categories"><h3>分类目录</h3>		<ul>
	<li class="cat-item cat-item-1"><a href="http://www.freebirdie.net/?cat=1" title="linux OS">Linux</a> (1)
</li>
	<li class="cat-item cat-item-9"><a href="http://www.freebirdie.net/?cat=9" title="生物信息">Perl</a> (2)
</li>
	<li class="cat-item cat-item-7"><a href="http://www.freebirdie.net/?cat=7" title="查看 我的生活 下的所有文章">我的生活</a> (1)
</li>
		</ul>
</li><li id="tag_cloud-3" class="widget widget_tag_cloud"><h3>标签</h3><div><a href='http://www.freebirdie.net/?tag=linux' class='tag-link-1' title='1 个话题' style='font-size: 8pt;'>Linux</a>
<a href='http://www.freebirdie.net/?tag=perl' class='tag-link-9' title='2 个话题' style='font-size: 22pt;'>Perl</a>
<a href='http://www.freebirdie.net/?tag=%e5%ae%9e%e4%b9%a0' class='tag-link-8' title='1 个话题' style='font-size: 8pt;'>实习</a></div>
</li><li id="archives-3" class="widget widget_archive"><h3>文章归档</h3>		<ul>
			<li><a href='http://www.freebirdie.net/?m=201008' title='2010 年八月'>2010 年八月</a></li>
	<li><a href='http://www.freebirdie.net/?m=201006' title='2010 年六月'>2010 年六月</a></li>
		</ul>
</li><li id="meta-3" class="widget widget_meta"><h3>功能</h3>			<ul>
			<li><a href="http://www.freebirdie.net/wp-login.php?action=register">注册</a></li>			<li><a href="http://www.freebirdie.net/wp-login.php">登录</a></li>
			<li><a href="http://www.freebirdie.net/?feed=rss2" title="使用 RSS 2.0 同步站点内容">文章 <abbr title="Really Simple Syndication">RSS</abbr></a></li>
			<li><a href="http://www.freebirdie.net/?feed=comments-rss2" title="使用 RSS 同步站点的近期评论">评论 <abbr title="Really Simple Syndication">RSS</abbr></a></li>
			<li><a href="http://wordpress.org/" title="基于 WordPress，优美的个人信息发布平台。">WordPress.org</a></li>
						</ul>
</li>
</ul>



</div>





</div><!-- end sidebar -->

	




<div style="clear:both;"></div>
</div>
</div> <!-- eo content -->

	<div id="footer">
	<div id="footer-inner">
	     <p>Copyright@freebirdie&nbsp;2010 &nbsp;free   birdie is powered by	<a href="http://wordpress.org/">WordPress</a></p>
	
	</div>
	</div>

	
	<div id="credit">
		<!-- Please leave this credit link intact -->
		<p><a href="http://www.freebirdie.net/#"></a></p>
	</div>

</div>

</body>
</html>

