<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title><![CDATA[linuxの飘扬]]></title> 
<link>https://www.linuxfly.org/index.php</link> 
<description><![CDATA[Power by www.linuxfly.org]]></description> 
<language>zh-cn</language> 
<copyright><![CDATA[linuxの飘扬]]></copyright>
<item>
<link>https://www.linuxfly.org/post/444/</link>
<title><![CDATA[[转]Perl CGI 之Session]]></title> 
<author>linuxing &lt;emos#linuxfly.org&gt;</author>
<category><![CDATA[Perl]]></category>
<pubDate>Sat, 27 Jun 2009 07:10:36 +0000</pubDate> 
<guid>https://www.linuxfly.org/post/444/</guid> 
<description>
<![CDATA[ 
	&nbsp;&nbsp;&nbsp;&nbsp;可以使用 Session 中存储特定用户会话所需的信息。这样，当用户在应用程序的 Web 页之间跳转时，存储在 Session 对象中的变量将不会丢失，而是在整个用户会话中一直存在下去。当用户请求来自应用程序的 Web 页时，如果该用户还没有会话，则 Web 服务器将自动创建一个 Session 对象。当会话过期或被放弃后，服务器将终止该会话。<br/>&nbsp;&nbsp;&nbsp;&nbsp;Session 对象最常见的一个用法就是存储用户的首选项。例如，如果用户指明不喜欢查看图形，就可以将该信息存储在 Session 对象中。<br/>............<br/><br/>Tags - <a href="https://www.linuxfly.org/tags/perl/" rel="tag">perl</a> , <a href="https://www.linuxfly.org/tags/session/" rel="tag">session</a>
]]>
</description>
</item><item>
<link>https://www.linuxfly.org/post/437/</link>
<title><![CDATA[[转]Perl CGI编程安全点滴]]></title> 
<author>linuxing &lt;emos#linuxfly.org&gt;</author>
<category><![CDATA[Perl]]></category>
<pubDate>Sat, 20 Jun 2009 05:40:00 +0000</pubDate> 
<guid>https://www.linuxfly.org/post/437/</guid> 
<description>
<![CDATA[ 
	&nbsp;&nbsp;&nbsp;&nbsp;CGI编程的安全问题得到越来越多的重视。Perl作为CGI编程的主要语言之一，其安全性也受到很大的关注。在 W3C组织的 &quot;WWW Security FAQ&quot; 之 &quot;CGI Scripts&quot;一章中，Perl安全编程就整整占了一节。由此可见 Perl CGI 安全编程的重要性。<br/><span style="color: #FF0000;">（文章比较老，请以实际测试情况为准）</span><br/>............<br/><br/>Tags - <a href="https://www.linuxfly.org/tags/perl/" rel="tag">perl</a> , <a href="https://www.linuxfly.org/tags/security/" rel="tag">security</a>
]]>
</description>
</item><item>
<link>https://www.linuxfly.org/post/379/</link>
<title><![CDATA[[原]Perl 网络编程基础]]></title> 
<author>linuxing &lt;emos#linuxfly.org&gt;</author>
<category><![CDATA[Perl]]></category>
<pubDate>Thu, 23 Apr 2009 01:32:37 +0000</pubDate> 
<guid>https://www.linuxfly.org/post/379/</guid> 
<description>
<![CDATA[ 
	&nbsp;&nbsp;&nbsp;&nbsp;在计算机之间共享信息和传输文件是网络时代做任何事情都不可缺少的，Perl 也提供了很多函数用于在程序中获取网络信息。这对用于进程间通信机制（套接字、消息队列等）的程序，都是相当有用和方便的。在进行进程间通信时，可通过套接字以客户端/服务端模型来处理。<br/>&nbsp;&nbsp;&nbsp;&nbsp;套接字是一种代表了两个通信进程端点（即服务器和客户端）之间的软件抽象；也就是说，套接字使得进程之间能否实现对话。Perl 5引入了一个特殊的Socket.pm模块来处理套接字，使程序可以更容易地从一台计算机输出到另一台计算机上。<br/>............<br/>
]]>
</description>
</item><item>
<link>https://www.linuxfly.org/post/370/</link>
<title><![CDATA[[原]关于perl的ref 函数]]></title> 
<author>linuxing &lt;emos#linuxfly.org&gt;</author>
<category><![CDATA[Perl]]></category>
<pubDate>Tue, 14 Apr 2009 10:05:00 +0000</pubDate> 
<guid>https://www.linuxfly.org/post/370/</guid> 
<description>
<![CDATA[ 
	&nbsp;&nbsp;&nbsp;&nbsp;我们都知道perl有引用的概念：一组数据实际上是另一组数据的引用。这些引用称为指针，第一组数据中存放的是第二组数据的头地址。这部分的内容详见：<a href="http://www.linuxfly.org/post/327/" target="_blank">[原]《Perl 24小时教程》学习笔记：引用与结构</a>。引用的方式被用得相当普遍，特别是在面向对象的模块、函数的参数传递等常见。但perl对每个引用都是以一个普通的变量来定义的，有时候，如果数据的架构比较复杂，我们可能会困惑于某个变量所指向的地址的实际内容是什么？perl的ref函数就可以帮助我们。<br/>............<br/><br/>Tags - <a href="https://www.linuxfly.org/tags/function/" rel="tag">function</a>
]]>
</description>
</item><item>
<link>https://www.linuxfly.org/post/369/</link>
<title><![CDATA[[原]再谈XML::Twig模块]]></title> 
<author>linuxing &lt;emos#linuxfly.org&gt;</author>
<category><![CDATA[Perl]]></category>
<pubDate>Mon, 13 Apr 2009 09:49:11 +0000</pubDate> 
<guid>https://www.linuxfly.org/post/369/</guid> 
<description>
<![CDATA[ 
	&nbsp;&nbsp;&nbsp;&nbsp;上周讲解过perl的XML::Twig模块，描述了如何读取XML文件后，使用TwigHandlers方法来对指定的标签进行过滤和修改处理，最后输出整个或部分的XML内容。其实，TwigHandlers仅是处理节点的其中一种方法，如果你希望从XML中提取数据后，可以自定义输出格式；或输出一个新的XML格式内容，XML::Twig模块也能很好的帮助您。<br/>............<br/><br/>Tags - <a href="https://www.linuxfly.org/tags/xml/" rel="tag">xml</a> , <a href="https://www.linuxfly.org/tags/module/" rel="tag">module</a>
]]>
</description>
</item><item>
<link>https://www.linuxfly.org/post/366/</link>
<title><![CDATA[[原]perl的XML::Twig模块]]></title> 
<author>linuxing &lt;emos#linuxfly.org&gt;</author>
<category><![CDATA[Perl]]></category>
<pubDate>Fri, 10 Apr 2009 06:31:16 +0000</pubDate> 
<guid>https://www.linuxfly.org/post/366/</guid> 
<description>
<![CDATA[ 
	&nbsp;&nbsp;&nbsp;&nbsp;CPAN上的XML模块大概可以分三类：对XML数据提供独特接口的模块（通常有关在XML实例和Perl数据之间的转换），实现某一标准XML API的模块，和对一些特定的XML相关任务进行简化等特殊用途的模块。其中，第一种模块也可以理解为自定义标准来解析XML，接下来要讲述的就是这一种类的其中一个模块。在对比了该种类多个模块后，我决定使用<span style="color: #FF0000;">XML::Twig</span>，原因是它功能比较强大，而且简单易用，对比XML::Simple要强，既可以输入也可以输出。<br/>&nbsp;&nbsp;&nbsp;&nbsp;虽然XML的用途非常多，但大部分的任务可以分两组：一、从已有的XML文档中提取数据，二使用其他资源的数据创建一个新的XML文档。<br/>............<br/><br/>Tags - <a href="https://www.linuxfly.org/tags/xml/" rel="tag">xml</a> , <a href="https://www.linuxfly.org/tags/module/" rel="tag">module</a>
]]>
</description>
</item><item>
<link>https://www.linuxfly.org/post/336/</link>
<title><![CDATA[[原]Perl的HTML::KTemplate模块]]></title> 
<author>linuxing &lt;emos#linuxfly.org&gt;</author>
<category><![CDATA[Perl]]></category>
<pubDate>Fri, 13 Mar 2009 06:56:01 +0000</pubDate> 
<guid>https://www.linuxfly.org/post/336/</guid> 
<description>
<![CDATA[ 
	&nbsp;&nbsp;&nbsp;&nbsp;前一篇日志中介绍了如何利用正规表达式的替换功能来实现Perl脚本和HTML模板的配合使用。正如日志中所说的，这方便把涉及和脚本分开处理，分工合作，效率可以大大的提高。但文中提到的技术，仅适合小型站点使用，若HTML中有一些特殊字符时，容易发生替换错误，而且转换效率不高。<br/>&nbsp;&nbsp;&nbsp;&nbsp;今天介绍的，是一个叫<span style="color: #FF0000;">HTML::KTemplate</span>的模板。HTML::KTemplate模块是由Kasper Dziurdz先生开发的一款功能强大的HTML代码解析的模块，模块功能非常强大，功能灵活，而不臃肿。我使用CPAN上的说明做个演示，剩余的功能参数可自行斟酌。<br/>............<br/><br/>Tags - <a href="https://www.linuxfly.org/tags/html/" rel="tag">html</a> , <a href="https://www.linuxfly.org/tags/module/" rel="tag">module</a>
]]>
</description>
</item><item>
<link>https://www.linuxfly.org/post/335/</link>
<title><![CDATA[[原]perl CGI 配合HTML模板使用]]></title> 
<author>linuxing &lt;emos#linuxfly.org&gt;</author>
<category><![CDATA[Perl]]></category>
<pubDate>Thu, 12 Mar 2009 08:37:37 +0000</pubDate> 
<guid>https://www.linuxfly.org/post/335/</guid> 
<description>
<![CDATA[ 
	&nbsp;&nbsp;&nbsp;&nbsp;通常的Perl教程，在讲述CGI编程的时候，都是使用print直接输出HTML代码，好些的，会告诉你可以用here document方式写。但显而易见的是，在大型网站中，这样的写法难以实现设计与编程的分开。我们都知道，php或asp等会这方面有比较好的实现方法，如&lt;? php&gt; xxx &lt;?&gt;方式。那么，Perl又如何呢？<br/>&nbsp;&nbsp;&nbsp;&nbsp;为达到这样要求，可以使用模板技术。这样，就能大量节省代码的编写量，提高代码效率，并且便于调试。以下内容大部分参考☞ <a href="http://blog.chinaunix.net/u/6542/showart_69919.html" target="_blank">这里</a>，但对于不明确的地方做了补充说明。<br/>............<br/>
]]>
</description>
</item>
</channel>
</rss>