<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>柳城 &#187; opendir</title>
	<atom:link href="http://liucheng.name/tag/opendir/feed/" rel="self" type="application/rss+xml" />
	<link>http://liucheng.name</link>
	<description>_SEO&#124;摄影&#124;WordPress&#124;博客</description>
	<lastBuildDate>Fri, 11 May 2012 10:58:07 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Perl closedir函数</title>
		<link>http://liucheng.name/1176/</link>
		<comments>http://liucheng.name/1176/#comments</comments>
		<pubDate>Wed, 23 Dec 2009 05:24:38 +0000</pubDate>
		<dc:creator>柳城</dc:creator>
				<category><![CDATA[Biocompute]]></category>
		<category><![CDATA[closedir]]></category>
		<category><![CDATA[opendir]]></category>
		<category><![CDATA[perl]]></category>
		<category><![CDATA[readdir]]></category>

		<guid isPermaLink="false">http://liucheng.name/?p=1176</guid>
		<description><![CDATA[Perl closedir函数关闭opendir打开的一个目录，如果关闭成功则返回真，否则返回假。参阅readdir里的例子。FILEHANDLE可以是一个表达式，它的值可以用做一个间接目录句柄，通常是真实目录句柄的名字。<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="5"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">无觅猜您也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="用Perl抓取网页和提交表格" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fliucheng.name%2F1236%2F&from=http%3A%2F%2Fliucheng.name%2F1176%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">用Perl抓取网页和提交表格</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="Perl chdir函数" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fliucheng.name%2F1101%2F&from=http%3A%2F%2Fliucheng.name%2F1176%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">Perl chdir函数</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="perl:使用system函数" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fliucheng.name%2F497%2F&from=http%3A%2F%2Fliucheng.name%2F1176%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">perl:使用system函数</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="Perl chmod函数" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fliucheng.name%2F1112%2F&from=http%3A%2F%2Fliucheng.name%2F1176%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">Perl chmod函数</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="Perl grep函数" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fliucheng.name%2F1251%2F&from=http%3A%2F%2Fliucheng.name%2F1176%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">Perl grep函数</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="5" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
			<content:encoded><![CDATA[<p>学习<span class='wp_keywordlink_affiliate'><a href="http://liucheng.name/tag/perl/" title="Perl" target="_blank">Perl</a></span>语言编程中……</p>
<h3>介绍:</h3>
<p>Perl <span class='wp_keywordlink_affiliate'><a href="http://liucheng.name/tag/closedir/" title="查看 closedir 中的全部文章" target="_blank">closedir</a></span>函数关闭<span class='wp_keywordlink_affiliate'><a href="http://liucheng.name/tag/opendir/" title="查看 opendir 中的全部文章" target="_blank">opendir</a></span>打开的一个目录，如果关闭成功则返回真，否则返回假。参阅<span class='wp_keywordlink_affiliate'><a href="http://liucheng.name/tag/readdir/" title="查看 readdir 中的全部文章" target="_blank">readdir</a></span>里的例子。FILEHANDLE可以是一个表达式，它的值可以用做一个间接目录句柄，通常是真实目录句柄的名字。<span id="more-1176"></span></p>
<h3>用法:</h3>
<pre>closedir FILEHANDLE</pre>
<h3>例子：</h3>
<pre>#!/usr/bin/<span class='wp_keywordlink_affiliate'><a href="http://liucheng.name/tag/perl/" title="perl">perl</a></span> -w

$dirname = "/tmp";

opendir ( DIR, $dirname ) || die "Error in opening dir $dirname\n";
while( ($filename = <span class='wp_keywordlink_affiliate'><a href="http://liucheng.name/tag/readdir/" title="查看 readdir 中的全部文章" target="_blank">readdir</a></span>(DIR))){
     print("$filename\n");
}
closedir(DIR);</pre>
<p><strong>返回结果如下：</strong></p>
<p>返回tmp目录下的所有文件名</p>
<pre>.
..
testdir</pre>
<p>Perl closedir函数 完~</p>
<div class="similarity"><h3>有点相关的文章</h3><ul><li><a href="http://liucheng.name/477/">如何用perl处理测序文件</a> (1.000)</li><li><a href="http://liucheng.name/496/">perl常用的内置特殊变量</a> (1.000)</li><li><a href="http://liucheng.name/497/">perl:使用system函数</a> (1.000)</li><li><a href="http://liucheng.name/786/">用Perl下载NCBI的Blast库（Blastdb）</a> (1.000)</li><li><a href="http://liucheng.name/849/">用Perl创建UTF-8的文件</a> (1.000)</li><li><a href="http://liucheng.name/1285/">用perl匹配字符串并返回该匹配的位置</a> (RANDOM - 0.500)</li></ul></div><!-- Mix --><table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="5"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">无觅猜您也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="用Perl抓取网页和提交表格" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fliucheng.name%2F1236%2F&from=http%3A%2F%2Fliucheng.name%2F1176%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">用Perl抓取网页和提交表格</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="Perl chdir函数" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fliucheng.name%2F1101%2F&from=http%3A%2F%2Fliucheng.name%2F1176%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">Perl chdir函数</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="perl:使用system函数" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fliucheng.name%2F497%2F&from=http%3A%2F%2Fliucheng.name%2F1176%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">perl:使用system函数</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="Perl chmod函数" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fliucheng.name%2F1112%2F&from=http%3A%2F%2Fliucheng.name%2F1176%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">Perl chmod函数</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="Perl grep函数" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fliucheng.name%2F1251%2F&from=http%3A%2F%2Fliucheng.name%2F1176%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">Perl grep函数</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="5" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></content:encoded>
			<wfw:commentRss>http://liucheng.name/1176/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

