<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
    <title>Perl Forum</title>
    <link rel="alternate" type="text/html" href="http://easun.org/perl/" />
    <link rel="self" type="application/atom+xml" href="http://easun.org/perl/atom.xml" />
    <id>tag:easun.org,2008-09-20:/perl//5</id>
    <updated>2012-05-03T21:25:53Z</updated>
    <subtitle>package EasunLee; use strict; use warnings; $EasunLee::VERSION = &apos;0.05&apos;; </subtitle>
    <generator uri="http://www.sixapart.com/movabletype/">Movable Type Pro 4.38</generator>

<entry>
    <title>【模块使用】aspx页面的html table中数据提取，用什么模块好？</title>
    <link rel="alternate" type="text/html" href="http://easun.org/perl/forum/topics/aspxhtml_table.html" />
    <id>tag:easun.org,2012:/perl//5.1191</id>

    <published>2012-02-06T07:45:49Z</published>
    <updated>2012-05-03T21:25:53Z</updated>

    <summary>有个杯具的页面，使用aspx写的，其中的html table数据需要用到~~ 所以请教下各位高手，这个使用什么模块好一些，或者方便些？ 非常感谢~~...</summary>
    <author>
        <name>davidlu1001</name>
        <uri>http://easun.org/cgi-bin/mymt/mt-cp.cgi?__mode=view&amp;blog_id=5&amp;id=292</uri>
    </author>
    
        <category term="Perl 编写讨论区" scheme="http://www.sixapart.com/ns/types#category" />
    
    
    <content type="html" xml:lang="en" xml:base="http://easun.org/perl/">
        有个杯具的页面，使用aspx写的，其中的html table数据需要用到~~
所以请教下各位高手，这个使用什么模块好一些，或者方便些？
非常感谢~~
        
    </content>
</entry>

<entry>
    <title>issues using matching variable $1,$2,....</title>
    <link rel="alternate" type="text/html" href="http://easun.org/perl/forum/topics/issues_using_matching_variable_12.html" />
    <id>tag:easun.org,2011:/perl//5.1182</id>

    <published>2011-04-19T15:40:00Z</published>
    <updated>2011-09-09T00:06:21Z</updated>

    <summary>my $v = q/There are 2 boys/; my $regx = &apos;\b(\d+)\b&apos;; my $str = q/$1 of/; # I try to have $1 in a variable and then use the variable in s/// $v =~ s/$regx/$str/g; print $1,&quot;\n&quot;; # print out...</summary>
    <author>
        <name>kennychen</name>
        <uri>http://easun.org/cgi-bin/mymt/mt-cp.cgi?__mode=view&amp;blog_id=5&amp;id=289</uri>
    </author>
    
        <category term="Perl 编写讨论区" scheme="http://www.sixapart.com/ns/types#category" />
    
    
    <content type="html" xml:lang="en" xml:base="http://easun.org/perl/">
        <![CDATA[my $v = q/There are 2 boys/;
my $regx = '\b(\d+)\b';
my $str = q/$1 of/;      # I try to have $1 in a variable and then use the variable in s///

$v =~ s/$regx/$str/g;
print $1,"\n"; # print out $1 value
print "$v";

The output is as below
<em>3
There are <strong>$1</strong> of 10 boys</em>

Then I use "$v =~ s/$regx/$str/g<strong>ee</strong>" instead, it output;
<em>Bareword found where operator expected at (eval 1) line 1, near "$1 of"
        (Missing operator before of?)
Number found where operator expected at (eval 1) line 1, near "of 10"
        (Do you need to predeclare of?)
3
There are  boys</em>

It seems there are no way to let the $1 to be interpolated in this case]]>
        
    </content>
</entry>

<entry>
    <title>bbcode [table] 的 perl 代码</title>
    <link rel="alternate" type="text/html" href="http://easun.org/perl/forum/topics/bbcode_table_perl_1.html" />
    <id>tag:easun.org,2011:/perl//5.1176</id>

    <published>2011-01-26T19:09:28Z</published>
    <updated>2011-01-26T19:09:28Z</updated>

    <summary>各位好！我刚开始学 perl. 有一个很老的 perl bbs 软件包 leobbs. 里面有这样的代码： [code] $$post =~ s/(\[align=)(left|center|right)(\])(.+?)(\[\/align\])/$4/isg; [/code] 我想加一些行进去，使得 相关的 BBCode 能够工作。 试过 [code] $$post =~ s/\[td\]\s*(.*?)\s*\[\/td\]/$1/isg; ......[/code] 虽然可以用，但不能识别 的很多具体设定。理想地说，我希望 [td※]◇[/tr] 能够转换成 $2 不管 ※ 是空还是非空字符串，都赋值于 $1 ... 当然也要对 [table] ， [tr] 做同样的事情。 请教高手我希望的功能的代码。谢谢了。...</summary>
    <author>
        <name>elim</name>
        <uri>http://easun.org/cgi-bin/mymt/mt-cp.cgi?__mode=view&amp;blog_id=5&amp;id=287</uri>
    </author>
    
        <category term="Perl 编写讨论区" scheme="http://www.sixapart.com/ns/types#category" />
    
    
    <content type="html" xml:lang="en" xml:base="http://easun.org/perl/">
        各位好！我刚开始学 perl.  有一个很老的 perl bbs 软件包 leobbs. 里面有这样的代码：

[code]
$$post =~ s/(\[align=)(left|center|right)(\])(.+?)(\[\/align\])/$4/isg;
[/code]
我想加一些行进去，使得  相关的 BBCode 能够工作。 试过
[code]
$$post =~ s/\[td\]\s*(.*?)\s*\[\/td\]/$1/isg;
......[/code]

虽然可以用，但不能识别  的很多具体设定。理想地说，我希望

[td※]◇[/tr]  能够转换成  $2

不管 ※ 是空还是非空字符串，都赋值于 $1 ...

当然也要对 [table] ， [tr] 做同样的事情。

请教高手我希望的功能的代码。谢谢了。
        
    </content>
</entry>

<entry>
    <title>踩个脚印</title>
    <link rel="alternate" type="text/html" href="http://easun.org/perl/forum/topics/post_1.html" />
    <id>tag:easun.org,2010:/perl//5.1171</id>

    <published>2010-12-03T16:03:27Z</published>
    <updated>2010-12-08T03:15:51Z</updated>

    <summary>邮箱里还能收到烹饪协会的情况反馈 两年半没有在这里了 踩个脚印 咩咩老哥，芳华妹妹 大家可好么？...</summary>
    <author>
        <name>眼睛oo</name>
        <uri>http://easun.org/cgi-bin/mymt/mt-cp.cgi?__mode=view&amp;blog_id=5&amp;id=3</uri>
    </author>
    
        <category term="Perl 爱好者休闲区" scheme="http://www.sixapart.com/ns/types#category" />
    
    
    <content type="html" xml:lang="en" xml:base="http://easun.org/perl/">
        <![CDATA[<p>邮箱里还能收到烹饪协会的情况反馈</p>
<p>两年半没有在这里了</p>
<p>踩个脚印</p>
<p>咩咩老哥，芳华妹妹</p>
<p>大家可好么？</p>]]>
        
    </content>
</entry>

<entry>
    <title>关于FTP的OPEN的问题</title>
    <link rel="alternate" type="text/html" href="http://easun.org/perl/forum/topics/ftpopen.html" />
    <id>tag:easun.org,2008:/perl//5.1113</id>

    <published>2008-10-12T11:43:23Z</published>
    <updated>2008-10-14T12:13:21Z</updated>

    <summary>请问一下,在FTP上打开一个文件,已经连接到FTP上然后用OPEN FILE为什么提示说打不开呢.应该怎么写OPEN才可以呢?谢谢!...</summary>
    <author>
        <name>chenchen</name>
        <uri>http://easun.org/cgi-bin/mymt/mt-cp.cgi?__mode=view&amp;blog_id=5&amp;id=267</uri>
    </author>
    
        <category term="Perl 编写讨论区" scheme="http://www.sixapart.com/ns/types#category" />
    
    
    <content type="html" xml:lang="en" xml:base="http://easun.org/perl/">
        <![CDATA[<p>请问一下,在FTP上打开一个文件,已经连接到FTP上然后用OPEN FILE为什么提示说打不开呢.应该怎么写OPEN才可以呢?谢谢!</p>]]>
        
    </content>
</entry>

<entry>
    <title>你也添加了编辑器啊，哈哈</title>
    <link rel="alternate" type="text/html" href="http://easun.org/perl/forum/topics/post.html" />
    <id>tag:easun.org,2008:/perl//5.1109</id>

    <published>2008-10-01T13:51:28Z</published>
    <updated>2012-05-03T11:08:28Z</updated>

    <summary>发现你的论坛添加了很多功能，注册个研究下。...</summary>
    <author>
        <name>bb</name>
        <uri>http://easun.org/cgi-bin/mymt/mt-cp.cgi?__mode=view&amp;blog_id=5&amp;id=265</uri>
    </author>
    
        <category term="Perl 爱好者休闲区" scheme="http://www.sixapart.com/ns/types#category" />
    
    
    <content type="html" xml:lang="en" xml:base="http://easun.org/perl/">
        <![CDATA[<p>发现你的论坛添加了很多功能，注册个研究下。</p>]]>
        
    </content>
</entry>

<entry>
    <title>[原创]来报到。</title>
    <link rel="alternate" type="text/html" href="http://easun.org/perl/forum/topics/2_138_0.html" />
    <id>tag:easun.org,2007:/perl/forum//5.973</id>

    <published>2007-12-29T15:42:33Z</published>
    <updated>2012-05-02T21:44:09Z</updated>

    <summary>我新来的，我很喜欢perl。不小心发现了这里。感动ing。竟然在我国还有这么细致的维护perl的人们。好多资料不好找。在这里好好学习。谢谢路杨。...</summary>
    <author>
        <name>liguang3333</name>
        <uri>http://easun.org/cgi-bin/mymt/mt-cp.cgi?__mode=view&amp;blog_id=5&amp;id=252</uri>
    </author>
    
        <category term="Perl 爱好者休闲区" scheme="http://www.sixapart.com/ns/types#category" />
    
    
    <content type="html" xml:lang="en" xml:base="http://easun.org/perl/">
        <![CDATA[<p>我新来的，我很喜欢perl。不小心发现了这里。感动ing。竟然在我国还有这么细致的维护perl的人们。好多资料不好找。在这里好好学习。谢谢路杨。</p>]]>
        
    </content>
</entry>

<entry>
    <title>[讨论]perl中的感叹号能否去掉</title>
    <link rel="alternate" type="text/html" href="http://easun.org/perl/forum/topics/3_99_0.html" />
    <id>tag:easun.org,2007:/perl/forum//5.895</id>

    <published>2007-10-29T12:21:39Z</published>
    <updated>2008-09-20T15:19:41Z</updated>

    <summary>在perl的程序中第一行总有这么一句&#35;！/usr/bin/perl这个感叹号可以去了吗？我去了以后也可以得到相同的结果，难道它真的没有用？...</summary>
    <author>
        <name>icyheart</name>
        <uri>http://easun.org/cgi-bin/mymt/mt-cp.cgi?__mode=view&amp;blog_id=5&amp;id=254</uri>
    </author>
    
        <category term="Perl 编写讨论区" scheme="http://www.sixapart.com/ns/types#category" />
    
    
    <content type="html" xml:lang="en" xml:base="http://easun.org/perl/">
        <![CDATA[<p>在perl的程序中第一行总有这么一句<br />&#35;！/usr/bin/perl<br />这个感叹号可以去了吗？我去了以后也可以得到相同的结果，难道它真的没有用？</p>]]>
        
    </content>
</entry>

<entry>
    <title>找一个Perl高手</title>
    <link rel="alternate" type="text/html" href="http://easun.org/perl/forum/topics/3_98_0.html" />
    <id>tag:easun.org,2007:/perl/forum//5.897</id>

    <published>2007-10-24T13:00:35Z</published>
    <updated>2012-05-02T21:46:05Z</updated>

    <summary>借贵宝地，找一个高手。我们现在要做一本Perl的图书。不知道有哪位高手愿意写。如果有兴趣，请与我联系dragbook@sina.com。（前面找过一次，不幸被放鸽子了。）...</summary>
    <author>
        <name>dragbook</name>
        <uri>http://easun.org/cgi-bin/mymt/mt-cp.cgi?__mode=view&amp;blog_id=5&amp;id=49</uri>
    </author>
    
        <category term="Perl 编写讨论区" scheme="http://www.sixapart.com/ns/types#category" />
    
    
    <content type="html" xml:lang="en" xml:base="http://easun.org/perl/">
        <![CDATA[<p>借贵宝地，找一个高手。<br />我们现在要做一本Perl的图书。不知道有哪位高手愿意写。如果有兴趣，请与我联系dragbook@sina.com。<br />（前面找过一次，不幸被放鸽子了。）</p>]]>
        
    </content>
</entry>

<entry>
    <title>[求助]想写个文本处理的程序，请支招～～</title>
    <link rel="alternate" type="text/html" href="http://easun.org/perl/forum/topics/3_97_0.html" />
    <id>tag:easun.org,2007:/perl/forum//5.898</id>

    <published>2007-10-21T15:52:52Z</published>
    <updated>2007-10-21T21:11:14Z</updated>

    <summary>我现在要做一件事情内容如下：1.从一个文本中读取有／KW／的行2。再在这一行读／NUCLEUA／3.如果读出来了，然后向上找最近的／ID／向下找／／／／4.读取ID和／／间的部分请问第三3.4部怎样实现？谢谢...</summary>
    <author>
        <name>scbible</name>
        <uri>http://easun.org/cgi-bin/mymt/mt-cp.cgi?__mode=view&amp;blog_id=5&amp;id=255</uri>
    </author>
    
        <category term="Perl 编写讨论区" scheme="http://www.sixapart.com/ns/types#category" />
    
    
    <content type="html" xml:lang="en" xml:base="http://easun.org/perl/">
        <![CDATA[<p><br />我现在要做一件事情内容如下：<br />1.从一个文本中读取有／KW／的行<br />2。再在这一行读／NUCLEUA／<br />3.如果读出来了，然后向上找最近的／ID／<br />向下找／／／／<br />4.读取ID和／／间的部分<br /><br />请问第三3.4部怎样实现？谢谢</p>]]>
        
    </content>
</entry>

<entry>
    <title>询问:PERL访问远程的机器或者HTTP的方法</title>
    <link rel="alternate" type="text/html" href="http://easun.org/perl/forum/topics/3_96_0.html" />
    <id>tag:easun.org,2007:/perl/forum//5.899</id>

    <published>2007-10-15T13:24:23Z</published>
    <updated>2007-10-17T10:54:58Z</updated>

    <summary>询问:PERL访问远程的机器或者HTTP的方法PERL如果访问远程的机器(比如别人共享文件夹),或者HTTP格式.那有类似NET::FTP的命令吗?谢谢...</summary>
    <author>
        <name>echohome</name>
        <uri>http://easun.org/cgi-bin/mymt/mt-cp.cgi?__mode=view&amp;blog_id=5&amp;id=256</uri>
    </author>
    
        <category term="Perl 编写讨论区" scheme="http://www.sixapart.com/ns/types#category" />
    
    
    <content type="html" xml:lang="en" xml:base="http://easun.org/perl/">
        <![CDATA[<p>询问:PERL访问远程的机器或者HTTP的方法<br />PERL如果访问远程的机器(比如别人共享文件夹),或者HTTP格式.那有类似NET::FTP的命令吗?<br />谢谢</p>]]>
        
    </content>
</entry>

<entry>
    <title>[求助]SYSTEM掉COPY的问题</title>
    <link rel="alternate" type="text/html" href="http://easun.org/perl/forum/topics/3_95_0.html" />
    <id>tag:easun.org,2007:/perl/forum//5.902</id>

    <published>2007-10-10T09:12:36Z</published>
    <updated>2007-10-11T13:52:33Z</updated>

    <summary><![CDATA[SYSTEM掉COPY的问题system(&quot;copy c:\1\1.docx c:\1\1\1.docx&quot;)无法解悉 \1 会出来笑脸(FAINT) 怎么办.....]]></summary>
    <author>
        <name>taiqi</name>
        <uri>http://easun.org/cgi-bin/mymt/mt-cp.cgi?__mode=view&amp;blog_id=5&amp;id=259</uri>
    </author>
    
        <category term="Perl 编写讨论区" scheme="http://www.sixapart.com/ns/types#category" />
    
    
    <content type="html" xml:lang="en" xml:base="http://easun.org/perl/">
        <![CDATA[<p>SYSTEM掉COPY的问题<br />system(&quot;copy c:\1\1.docx c:\1\1\1.docx&quot;)无法解悉 \1 会出来笑脸(FAINT) 怎么办..</p>]]>
        
    </content>
</entry>

<entry>
    <title>HP-UNIX 11.11 PerlTK汉字乱码</title>
    <link rel="alternate" type="text/html" href="http://easun.org/perl/forum/topics/3_94_0.html" />
    <id>tag:easun.org,2007:/perl/forum//5.901</id>

    <published>2007-10-09T19:19:09Z</published>
    <updated>2007-10-11T13:53:54Z</updated>

    <summary><![CDATA[affix('http://easun.org/upload/perl/usr/200710/99_1192014996.gif','/esbnocgi');&#35;&#35;&#35;&#35;&#35;&#35;&#35;&#35;&#35;&#35;&#35;&#35;&#35;&#35;&#35;&#35;&#35;&#35;&#35;&#35;&#35;&#35;&#35;&#35;&#35;&#35;&#35;&#35;&#35;&#35;&#35;&#35;&#35;&#35;&#35;&#35;use Tk&#59;use encoding(&quot;utf8&quot;)&#59;&#36;label_text1 = &quot;软件说明&quot;&#59;&#36;label_text2 = &quot;高德电子软件说明&quot;&#59;&#36;label_text3 = &quot;工作站&quot;&#59;&#36;mw = new MainWindow&#59;&#36;mw-&gt;Label(-text =&gt; &#36;label_text1)-&gt;pack&#59;&#36;mw-&gt;Label(-text =&gt; &#36;label_text2)-&gt;pack&#59;&#36;mw-&gt;Label(-text =&gt; &#36;label_text3)-&gt;pack&#59;MainLoop&#59;&#35;&#35;&#35;&#35;&#35;&#35;&#35;&#35;&#35;&#35;&#35;&#35;&#35;&#35;&#35;&#35;&#35;&#35;&#35;&#35;&#35;&#35;&#35;&#35;&#35;&#35;&#35;&#35;&#35;&#35;&#35;&#35;&#35;各位高人帮忙解决啊！...]]></summary>
    <author>
        <name>fanyefeng</name>
        <uri>http://easun.org/cgi-bin/mymt/mt-cp.cgi?__mode=view&amp;blog_id=5&amp;id=258</uri>
    </author>
    
        <category term="Perl 编写讨论区" scheme="http://www.sixapart.com/ns/types#category" />
    
    
    <content type="html" xml:lang="en" xml:base="http://easun.org/perl/">
        <![CDATA[<p><script language=javascript>affix('http://easun.org/upload/perl/usr/200710/99_1192014996.gif','/esbnocgi');</script><br />&#35;&#35;&#35;&#35;&#35;&#35;&#35;&#35;&#35;&#35;&#35;&#35;&#35;&#35;&#35;&#35;&#35;&#35;&#35;&#35;&#35;&#35;&#35;&#35;&#35;&#35;&#35;&#35;&#35;&#35;&#35;&#35;&#35;&#35;&#35;&#35;<br />use Tk&#59;<br />use encoding(&quot;utf8&quot;)&#59;<br />&#36;label_text1 = &quot;软件说明&quot;&#59;<br />&#36;label_text2 = &quot;高德电子软件说明&quot;&#59;<br />&#36;label_text3 = &quot;工作站&quot;&#59;<br />&#36;mw = new MainWindow&#59;<br />&#36;mw-&gt;Label(-text =&gt; &#36;label_text1)-&gt;pack&#59;<br />&#36;mw-&gt;Label(-text =&gt; &#36;label_text2)-&gt;pack&#59;<br />&#36;mw-&gt;Label(-text =&gt; &#36;label_text3)-&gt;pack&#59;<br />MainLoop&#59;<br /><br />&#35;&#35;&#35;&#35;&#35;&#35;&#35;&#35;&#35;&#35;&#35;&#35;&#35;&#35;&#35;&#35;&#35;&#35;&#35;&#35;&#35;&#35;&#35;&#35;&#35;&#35;&#35;&#35;&#35;&#35;&#35;&#35;&#35;<br />各位高人帮忙解决啊！</p>]]>
        
    </content>
</entry>

<entry>
    <title>[求助]请教一个PERL的思路</title>
    <link rel="alternate" type="text/html" href="http://easun.org/perl/forum/topics/3_93_0.html" />
    <id>tag:easun.org,2007:/perl/forum//5.900</id>

    <published>2007-10-09T13:01:24Z</published>
    <updated>2007-10-11T13:56:02Z</updated>

    <summary><![CDATA[请教一个PERL的思路在一个数组里面有一系列的文件夹PATH比如: dat\da\1 &nbsp;cor\2....然后需要用它去访问一个远程的机器. \\GG\MEASURE\看是否里面包涵这些文件夹. &nbsp;如果文件夹存在那就COPY里面所有文件到另一个SERVER \\DD\MEA\ 下请问能提供个好思路吗谢谢...]]></summary>
    <author>
        <name>echohome</name>
        <uri>http://easun.org/cgi-bin/mymt/mt-cp.cgi?__mode=view&amp;blog_id=5&amp;id=256</uri>
    </author>
    
        <category term="Perl 编写讨论区" scheme="http://www.sixapart.com/ns/types#category" />
    
    
    <content type="html" xml:lang="en" xml:base="http://easun.org/perl/">
        <![CDATA[<p>请教一个PERL的思路<br />在一个数组里面有一系列的文件夹PATH<br />比如: dat\da\1 &nbsp;cor\2....<br />然后需要用它去访问一个远程的机器. \\GG\MEASURE\<br />看是否里面包涵这些文件夹. &nbsp;<br />如果文件夹存在那就COPY里面所有文件到另一个SERVER \\DD\MEA\ 下<br />请问能提供个好思路吗谢谢</p>]]>
        
    </content>
</entry>

<entry>
    <title>[求助]两个关于PERL的小问题:</title>
    <link rel="alternate" type="text/html" href="http://easun.org/perl/forum/topics/3_92_0.html" />
    <id>tag:easun.org,2007:/perl/forum//5.903</id>

    <published>2007-10-09T10:52:25Z</published>
    <updated>2007-10-09T11:56:05Z</updated>

    <summary>两个关于PERL的小问题:1) 在PERL怎么注释一段代码? 2) a = //asd/fjasfkl&#59;要把当中：//asd/fjasfkl　　拿出来怎么搞．．...</summary>
    <author>
        <name>taiqi</name>
        <uri>http://easun.org/cgi-bin/mymt/mt-cp.cgi?__mode=view&amp;blog_id=5&amp;id=259</uri>
    </author>
    
        <category term="Perl 编写讨论区" scheme="http://www.sixapart.com/ns/types#category" />
    
    
    <content type="html" xml:lang="en" xml:base="http://easun.org/perl/">
        <![CDATA[<p>两个关于PERL的小问题:<br />1) 在PERL怎么注释一段代码? <br />2) a = //asd/fjasfkl&#59;<br />要把当中：//asd/fjasfkl　　拿出来怎么搞．．</p>]]>
        
    </content>
</entry>

</feed>
