2009年9月5日星期六

[PerlChina] Re: 请教如何合并多个连续的[img]标签正则该怎么写啊?

大概可以实现,要用到
look-around match ,    或者用split 分隔开也行
 
 
 
 
#!/usr/bin/perl

use strict ;
use warnings ;
use Data::Dumper ;


$_ = qq~
[img]aa[/img]
[img]bb[/img]   [img]bb[/img]
文字
[img]cc[/img]   [img]cc[/img]  [img]cc[/img]

ddddd

[img]cc[/img]  [img]cc[/img]  [img]cc[/img]  [img]cc[/img]

~;


# use split maybe more clear : depends on you
#my @data =  grep { length } split /(\s*\[img\]\S+\[\/img\]\s*)/ ,  $_ ;

#print Dumper \@data ;


# method 1 :  keep the last one :
s/  \[img\] \S+ \[\/img\]     (?= \s* \[img\] \S+ \[\/img\] \s* )  //xg ;

print ;


#or


# method 2 :  keep the first one : divide into 3 substeps : can control
# more detailedly  ,

# step1 : front has not  , back has
s/ (?<!\[\/img\]) \s* (\[img\]\S+\[\/img\]) \s*  (?=\[img\]) /$1/xg ;

# step2 : front /back both has
s/ (?<=\[\/img\]) \s* (\[img\]\S+\[\/img\]) \s*  (?=\[img\]) //xg ;

# step3 : front has , back has not
s/ (?<=\[\/img\]) \s* (\[img\]\S+\[\/img\]) \s*  (?!\[img\]) //xg ;


print ;

 

 

 



 

2009/9/5 imxae <imx365ster@gmail.com>
就是合并连html标签的问题,如:

str=qq~
[img]aa[/img]
[img]bb[/img]
文字
[img]cc[img]
~;

处理之后:

str=
[img]aa[/img]
文字
[img]cc[/img]
;

因为上面[img]标签aa与bb是连续的,中间只有空格或回车,也算是连续的.所以处理后应剩一个.后同的cc因为前面有文字内容和前面的标签分隔开了,而且只有一个就保留下来.

就是处理因为连续重复出现的标签.不知道说清楚了没有..


2009/9/5 Michael Zeng <galaxy2004@gmail.com>:
> 没看懂问题,能说得更清除写么
>
>
> 2009/9/5 蓝天下云层上 <imx365ster@gmail.com>
>>
>> $str=qq~[img]sss[/img]
>> [img]bbb[/img][img]ccc[/img]~;
>>
>> $str=~ ..;
>>
>>
>> 如何把上面连续标签[img]合并成一个[img]sss[/img],只要有两个或两个以上一样的标签出现只保留一个?
>
>
>
> --
>            Yours Sincerely
>                    Zeng Hong
>
> >
>


--
           Yours Sincerely
                   Zeng Hong

--~--~---------~--~----~------------~-------~--~----~
您收到此信息是由于您订阅了 Google 论坛"PerlChina Mongers 讨论组"论坛。
 要在此论坛发帖,请发电子邮件到 perlchina@googlegroups.com
 要退订此论坛,请发邮件至 perlchina+unsubscribe@googlegroups.com
 更多选项,请通过 http://groups.google.com/group/perlchina?hl=zh-CN 访问该论坛

-~----------~----~----~----~------~----~------~--~---

[PerlChina] Re: Perl有没有类似于WebShot的模块?

借助Qt WebKit,自行写代码解决了。
原来Qt 4.5的文档中也提供了这样的例子的。不过它scale后的图像失真得好严重。需要Image::Magick来代替thumbnail这一
步好点。
感叹一下,在看Qt的文档前,我是先google到了PyQt的同样例子。


On 9月4日, 下午6时54分, PIG <addm...@gmail.com> wrote:
> html2jpg吧
>
> 在 09-9-4,truncatei<trunca...@gmail.com> 写道:
>
>
>
> > 看到你的签名想起了 Perlish
>
> > 在 2009-9-4,下午3:58, Beckheng Lam 写道:
>
> >> Perl乐事 --http://www.perlersh.org
> >> 我的博客 --http://www.perlersh.org/blog.html- 隐藏被引用文字 -
>
> - 显示引用的文字 -
--~--~---------~--~----~------------~-------~--~----~
您收到此信息是由于您订阅了 Google 论坛"PerlChina Mongers 讨论组"论坛。
要在此论坛发帖,请发电子邮件到 perlchina@googlegroups.com
要退订此论坛,请发邮件至 perlchina+unsubscribe@googlegroups.com
更多选项,请通过 http://groups.google.com/group/perlchina?hl=zh-CN 访问该论坛
-~----------~----~----~----~------~----~------~--~---

[PerlChina] Re: 请教如何合并多个连续的[img]标签正则该怎么写啊?

就是合并连html标签的问题,如:

str=qq~
[img]aa[/img]
[img]bb[/img]
文字
[img]cc[img]
~;

处理之后:

str=
[img]aa[/img]
文字
[img]cc[/img]
;

因为上面[img]标签aa与bb是连续的,中间只有空格或回车,也算是连续的.所以处理后应剩一个.后同的cc因为前面有文字内容和前面的标签分隔开了,而且只有一个就保留下来.

就是处理因为连续重复出现的标签.不知道说清楚了没有..


2009/9/5 Michael Zeng <galaxy2004@gmail.com>:
> 没看懂问题,能说得更清除写么
>
>
> 2009/9/5 蓝天下云层上 <imx365ster@gmail.com>
>>
>> $str=qq~[img]sss[/img]
>> [img]bbb[/img][img]ccc[/img]~;
>>
>> $str=~ ..;
>>
>>
>> 如何把上面连续标签[img]合并成一个[img]sss[/img],只要有两个或两个以上一样的标签出现只保留一个?
>
>
>
> --
> Yours Sincerely
> Zeng Hong
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
您收到此信息是由于您订阅了 Google 论坛"PerlChina Mongers 讨论组"论坛。
要在此论坛发帖,请发电子邮件到 perlchina@googlegroups.com
要退订此论坛,请发邮件至 perlchina+unsubscribe@googlegroups.com
更多选项,请通过 http://groups.google.com/group/perlchina?hl=zh-CN 访问该论坛
-~----------~----~----~----~------~----~------~--~---

[PerlChina] Re: 请教如何合并多个连续的[img]标签正则该怎么写啊?

没看懂问题,能说得更清除写么


 
2009/9/5 蓝天下云层上 <imx365ster@gmail.com>
$str=qq~[img]sss[/img]
[img]bbb[/img][img]ccc[/img]~;

$str=~ ..;


如何把上面连续标签[img]合并成一个[img]sss[/img],只要有两个或两个以上一样的标签出现只保留一个?



--
           Yours Sincerely
                   Zeng Hong

--~--~---------~--~----~------------~-------~--~----~
您收到此信息是由于您订阅了 Google 论坛"PerlChina Mongers 讨论组"论坛。
 要在此论坛发帖,请发电子邮件到 perlchina@googlegroups.com
 要退订此论坛,请发邮件至 perlchina+unsubscribe@googlegroups.com
 更多选项,请通过 http://groups.google.com/group/perlchina?hl=zh-CN 访问该论坛

-~----------~----~----~----~------~----~------~--~---

[PerlChina] Re: 请教:windows下mod_perl的安装方法

谢谢你,我已经按你说的安装好了

On 9月4日, 下午10时36分, Beckheng Lam <bi.ken....@gmail.com> wrote:
> 没使用SVN安装过。
> 怎么不试一下安装ppm3包中的mod_perl2 for apache 2.2的?
>
> 野鸭子 wrote:
> > 我在windows平台下安装mod_perl到apache2.2.11中。
> > mod_perl是使用svn下载下来的最新版本。
> > 请教完整的安装方式,谢谢!
>
> --
> Perl乐事 --http://www.perlersh.org
> 我的博客 --http://www.perlersh.org/blog.html
--~--~---------~--~----~------------~-------~--~----~
您收到此信息是由于您订阅了 Google 论坛"PerlChina Mongers 讨论组"论坛。
要在此论坛发帖,请发电子邮件到 perlchina@googlegroups.com
要退订此论坛,请发邮件至 perlchina+unsubscribe@googlegroups.com
更多选项,请通过 http://groups.google.com/group/perlchina?hl=zh-CN 访问该论坛
-~----------~----~----~----~------~----~------~--~---

[PerlChina] [Fwd: Books and News from the O'Reilly User Group Program--Sept]

-------- Original Message --------
Subject: Books and News from the O'Reilly User Group Program--Sept
Date: Tue, 1 Sep 2009 09:08:52 -0700
From:
To:


O'Reilly Media, Inc.

If you cannot read the information below, click here.

Forward this annoucement to a friend

O'Reilly.comUser Group Newsletter

Sep 2009 Issue:

New Releases:

97 Things Every Project Manager Should Know

Agile Coaching
By Rachel Davies, Liz Sedley

The Art of Community
By Jono Bacon

Art of Drum Layering
By Eddie Bazil

Beautiful Data
By Toby Segaran, Jeff Hammerbacher

Bioinformatics Programming Using Python: Rough Cuts Version
By Mitchell L Model

The Canon EOS Digital Rebel T1i/500D Companion
By Ben Long

The CSS Anthology: 101 Essential Tips, Tricks & Hacks, Third Edition
By Rachel Andrew

CSS: The Missing Manual, Second Edition
By David Sawyer McFarland

Cubase 5 Tips and Tricks
By Keith Gemmell

flex & bison
By John Levine

Head First Data Analysis
By Michael Milton

Head First PMP, Second Edition
By Jennifer Greene, Andrew Stellman

Head First Programming: Rough Cuts Version
By David Griffiths, Paul Barry

iPhone UK: The Missing Manual, Third Edition

iPhone: The Missing Manual, Third Edition
By David Pogue

JUNOS Enterprise Switching
By Harry Reynolds, Doug Marschke

JUNOS High Availability
By James Sonderegger, Orin Blomberg, Kieran Milne, Senad Palislamovic

Just a Geek
By Wil Wheaton

Living Green: The Missing Manual
By Nancy Conner

Make: Technology on Your Time Volume 19
By Mark Frauenfelder

Manage Your Project Portfolio
By Johanna Rothman

The Manga Guide to Calculus
By Hiroyuki Kojima, Shin Togami, Becom Co. Ltd.

The Manga Guide to Molecular Biology
By Masaharu Takemura, Sakura, Becom Co. Ltd.

Mastering Photographic Composition, Creativity, and Personal Style
By Alain Briot

Mobile Design and Development
By Brian Fling

My New Mac, Snow Leopard Edition, Second Edition

Netbooks: The Missing Manual
By J.D. Biersdorfer

Palm Pre: The Missing Manual
By Ed Baig

Palm webOS
By Mitch Allen

Programming Cocoa with Ruby
By Brian Marick

Programming Interactivity
By Joshua Noble

Programming the iPhone User Experience
By Toby Boudreaux

RESTful Web Services Cookbook: Rough Cuts Version
By Subbu Allamaraju, Mike Amundsen

Up and Running with Joomla, Second Edition
By R. Allen Wyke, Skip Matheny

Your Body: The Missing Manual
By Matthew MacDonald

Welcome

Hi there,

Planning is underway for the Southeast User Group Leaders Summit on October 17 in Atlanta, GA metro area. The goal of this event is to share tips and discuss the issues and challenges facing technology groups regardless of the actual technology the group is focused on, such as finding locations, getting speakers, seeking out sponsorship, growing membership, hosting special events, etc. If you're a UG leader located in Alabama, Florida, Georgia, North Carolina, or Tennessee--please check out the wiki site and see if you can join us.

Please pass along any part of this newsletter to your group via email or your website and include the discount codes. We offer both a text and an HTML version.

Thanks,

--Marsee Henon



Upcoming Webcasts including Snow Leopard, Palm WebOS, and the O'Reilly Radar Global Issues Series

Upcoming webcasts include Intro to Snow Leopard, Palm webOS: Application Basics, iPhone Forensics: Live Recovery of an iPhone 3G[s], and Energy Literacy. For the complete list of upcoming events, check out our webcasts.



How Tim O'Reilly Aims to Change Government

"Some people go to Washington to try to make the government more honest; others try to make it smaller," writes Marshall Kirkpatrick for ReadWriteWeb. "Technologist Tim O'Reilly is spending time in Washington, and bringing Washington officials to San Francisco, to do something different - perhaps something more realistic. O'Reilly is trying to help government become a platform for innovation. A "government as platform" would supply raw digital data and other forms of support for private sector innovators to build on top of." Read more about Tim's ideas for transforming government.



Learn to Build iPhone Apps in 2 days

Build, Compile, and Run Your iPhone App in 2 Days. September 19-20 in Seattle, WA, October 8-9 in Cambridge, MA, and November 13-14 in New York, NY.

What does it take to create a successful iPhone app? If you have an ingenious app idea, learn how to make it a reality in this dynamic two-day workshop. You'll quickly pick up the basics of Apple's Cocoa programming environment, the Xcode suite of tools, and the Objective-C language. Then you'll build two working iPhone apps! All you need to get started is experience with object-oriented programming. User Group members receive a 30% discount with code DSUG when you register online.



Reviewers Needed and Book Discount Code

We're always looking for book reviewers, especially on our new releases. Titles we're excited about include The Art of Community, Living Green: The Missing Manual, Mobile Design and Development, Netbooks: The Missing Manual, and Programming the iPhone User Experience. If you'd like to write a review of any of these books for Amazon, Slashdot, or your blog, please send an email to your user group leader with the book title and where you'll review it.

Get 35% off from O'Reilly, No Starch, Paraglyph, PC Publishing, Pragmatic Bookshelf, Rocky Nook, SitePoint, or YoungJin books and ebooks you purchase directly from O'Reilly. Just use code DSUG when ordering online or by phone 800-998-9938.


Web 2.0 Expo NY User Group Discount

Web 2.0 Expo NY is coming up November 16-19 in New York, NY.

If you're interesting in attending, use code "webny09usrg" when you register, and receive 25% off the registration price.

Or register for an Expo Hall Only Pass with code "webny09ugxp."



UG leaders only--Put Up a Banner, Get a Free Book

We're looking for user groups to display our discount banners on their web sites. If you send me a link to your group's site with one or more banners posted, I'll send you the O'Reilly book(s) of your choice. Choose from the following list:



Discount Offers from Beyond O'Reilly

Want to use Meetup to organize your user group? They've kindly offered groups registered with our UG program the following deal:

Coupon name: wildfire
Gets: 50% off initial subscription period. Can be used on any plan. Renews at regular price. (Example: If applied to 6-month plan comes out to $6 a month for first 6 months). Must be used by 10/01/09.
Go to: http://www.meetup.com/create.
Contact for questions: organizer@meetup.com
Offer is good worldwide

Make plans now to attend the second annual SC World Congress - Enterprise Data Security Conference & Expo, October 13-14 in New York City.

The Congress features a comprehensive, two-day program presented in four tracks-including the unique Editors Choice sessions-and the industry's most comprehensive fall product expo showcasing IT security solutions from the leading vendors and hot start-ups.

O'Reilly customers and affiliated user groups receive a $100 discount on conference fees, applied to the prevailing rate, by using the code "oreilly" in the box marked Promotional Code on the registration page. Register by September 18 for the best rates.



Upcoming Events

Ben Rothke

Webcast: Information Security and Social Networks
When: Sep 2, 2009
This webcast will detail the significant security and privacy risks that social network create, and will also provides detailed guidance on ways organizations and individuals can use social networks in a safe and secure manner.

Francesco Cesarini at ACM Erlang Workshop
When: Sep 3, 2009
Where: Royal College of Physicians Edinburgh, Scotland
For the 8th year in a row, Francesco Cesarini (Erlang Programming) of Erlang Training and Consulting is proud to be on the program committee. The workshop, affiliated with ICFP 2009, aims to bring together the open source, academic, and industrial programming communities of Erlang.

Chris Seibold

Webcast - Intro to Snow Leopard
When: Sep 3, 2009
In this webcast author Chris Seibold will introduce you to Snow Leopard, beginning with installation options. You'll learn about compatability, the hidden advantages of Snow Leopard, and why you should or shouldn't consider installing this newest operating system for the Mac.

More Upcoming Events >>


Spreading the knowledge of innovators.O'Reilly.com
You are receiving this email because you are a User Group contact with O'Reilly Media. If you would like to stop receiving this newsletter please email marsee@oreilly.com with your request.

O'Reilly Media, Inc. 1005 Gravenstein Highway North, Sebastopol, CA 95472 (707) 827-7000
http://oreilly.com/ | http://ug.oreilly.com/

Forward this announcement: http://post.oreilly.com/f2f/9z1z5csqsuf53gn60nibgs2mlpnshvk4b940qfao1bg



--~--~---------~--~----~------------~-------~--~----~
您收到此信息是由于您订阅了 Google 论坛"PerlChina Mongers 讨论组"论坛。
 要在此论坛发帖,请发电子邮件到 perlchina@googlegroups.com
 要退订此论坛,请发邮件至 perlchina+unsubscribe@googlegroups.com
 更多选项,请通过 http://groups.google.com/group/perlchina?hl=zh-CN 访问该论坛

-~----------~----~----~----~------~----~------~--~---

2009年9月4日星期五

[PerlChina] 请教如何合并多个连续的[img]标签正则该怎么写啊?

$str=qq~[img]sss[/img]
[img]bbb[/img][img]ccc[/img]~;

$str=~ ..;


如何把上面连续标签[img]合并成一个[img]sss[/img],只要有两个或两个以上一样的标签出现只保留一个?
--~--~---------~--~----~------------~-------~--~----~
您收到此信息是由于您订阅了 Google 论坛"PerlChina Mongers 讨论组"论坛。
要在此论坛发帖,请发电子邮件到 perlchina@googlegroups.com
要退订此论坛,请发邮件至 perlchina+unsubscribe@googlegroups.com
更多选项,请通过 http://groups.google.com/group/perlchina?hl=zh-CN 访问该论坛
-~----------~----~----~----~------~----~------~--~---

[PerlChina] Re: 我写的总是不对.perl像google首页一样去掉html多余代码的正则怎么写?

这个好像是对html进行解析,分析html结构用的吧.

--~--~---------~--~----~------------~-------~--~----~
您收到此信息是由于您订阅了 Google 论坛"PerlChina Mongers 讨论组"论坛。
要在此论坛发帖,请发电子邮件到 perlchina@googlegroups.com
要退订此论坛,请发邮件至 perlchina+unsubscribe@googlegroups.com
更多选项,请通过 http://groups.google.com/group/perlchina?hl=zh-CN 访问该论坛
-~----------~----~----~----~------~----~------~--~---

[PerlChina] Re: 请教:windows下mod_perl的安装方法

没使用SVN安装过。
怎么不试一下安装ppm3包中的mod_perl2 for apache 2.2的?

野鸭子 wrote:
> 我在windows平台下安装mod_perl到apache2.2.11中。
> mod_perl是使用svn下载下来的最新版本。
> 请教完整的安装方式,谢谢!
>
>


--
Perl乐事 -- http://www.perlersh.org
我的博客 -- http://www.perlersh.org/blog.html


--~--~---------~--~----~------------~-------~--~----~
您收到此信息是由于您订阅了 Google 论坛"PerlChina Mongers 讨论组"论坛。
要在此论坛发帖,请发电子邮件到 perlchina@googlegroups.com
要退订此论坛,请发邮件至 perlchina+unsubscribe@googlegroups.com
更多选项,请通过 http://groups.google.com/group/perlchina?hl=zh-CN 访问该论坛
-~----------~----~----~----~------~----~------~--~---

[PerlChina] 请教:windows下mod_perl的安装方法

我在windows平台下安装mod_perl到apache2.2.11中。
mod_perl是使用svn下载下来的最新版本。
请教完整的安装方式,谢谢!
--~--~---------~--~----~------------~-------~--~----~
您收到此信息是由于您订阅了 Google 论坛"PerlChina Mongers 讨论组"论坛。
要在此论坛发帖,请发电子邮件到 perlchina@googlegroups.com
要退订此论坛,请发邮件至 perlchina+unsubscribe@googlegroups.com
更多选项,请通过 http://groups.google.com/group/perlchina?hl=zh-CN 访问该论坛
-~----------~----~----~----~------~----~------~--~---

[PerlChina] Re: Perl有没有类似于WebShot的模块?

html2jpg吧

在 09-9-4,truncatei<truncatei@gmail.com> 写道:
> 看到你的签名想起了 Perlish
>
> 在 2009-9-4,下午3:58, Beckheng Lam 写道:
>
>> Perl乐事 -- http://www.perlersh.org
>> 我的博客 -- http://www.perlersh.org/blog.html
>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
您收到此信息是由于您订阅了 Google 论坛"PerlChina Mongers 讨论组"论坛。
要在此论坛发帖,请发电子邮件到 perlchina@googlegroups.com
要退订此论坛,请发邮件至 perlchina+unsubscribe@googlegroups.com
更多选项,请通过 http://groups.google.com/group/perlchina?hl=zh-CN 访问该论坛
-~----------~----~----~----~------~----~------~--~---

[PerlChina] Re: 大家好, 我是一名大四的学生,最近要开始准备毕设了,想用perl来开发一个网络会议管理系统,想听听各位的意见

恩,这个确实太大了,而且perl 的这方面不适强项,
看来得重新考虑一下了,,
另外,可以发你的那个程序给我参考下吗?学习学习

On 9月3日, 下午4时46分, 鲁班 <jackwor...@gmail.com> wrote:
> 我当时毕设的时候是用perl写了个类似于FTP搜索引擎的东西,就是在后台不断的搜索和抓取校内的FTP资源,并显示在WEB站点上。 比你这个简
> 单。 你可以太大了,要做出来,都可以商业化了。
>
> On 9月1日, 上午11时15分, Dill <dillisb...@gmail.com> wrote:
>
> > 大家好, 我是一名大四的学生,最近要开始准备毕设了,想用perl来开发一个网络会议管理系统,想听听各位的意见?
> > 首先,perl语言涉及面广,做网络会议管理系统应该不成问题吧?
>
> > 网络会议系统是个以网络为媒介的多媒体会议平台,使用者可突破时间地域的限制,通过互联网实现面对面般的交流效果。系统采用先进的音视频
> > 编解码技术,保证产品清晰的语音和视频效果;强大的数据共享功能更为用户提供了电子白板、网页同步、程序共享、演讲稿同步、虚拟打印、文件传输等丰富的
> > 会议辅助功能,能够全面满足远程视频会议、资料共享、协同工作、异地商务、远程培训以及远程炒股等各种需求,从而为用户提供高效快捷的沟通新途径,有效
> > 降低公司的运营成本,提高企业的运作效率。
>
> > 主要功能包括:视频音频通话,文件共享,群聊,私聊,文件传输等功能。
>
> > 由于我的perl水平有限,各个方面还是半桶水,现在也没有十足的把握可以做出来,不过信心倒是有,很喜欢linux和perl,所以在这里希望大家能
> > 够在闲暇之余给予我一点帮助,说一说
> > 1.网络会议系统的其他所需功能
> > 2.列举一下某项功能用perl如何去实现(概要就好,详细更好)
> > 3.如果大家有这方面的兴趣可以一起探讨,谢谢大家。
>
> > Gmail:dillisb...@gmail.com
--~--~---------~--~----~------------~-------~--~----~
您收到此信息是由于您订阅了 Google 论坛"PerlChina Mongers 讨论组"论坛。
要在此论坛发帖,请发电子邮件到 perlchina@googlegroups.com
要退订此论坛,请发邮件至 perlchina+unsubscribe@googlegroups.com
更多选项,请通过 http://groups.google.com/group/perlchina?hl=zh-CN 访问该论坛
-~----------~----~----~----~------~----~------~--~---

[PerlChina] Re: 大家好, 我是一名大四的学生,最近要开始准备毕设了,想用perl来开发一个网络会议管理系统,想听听各位的意见

恩,这个方向也蛮好的,我还真是惭愧了,没用perl做出过什么实用的东西,
这个毕设最终不管能不能做也好,看到你们以前的毕设成果,更加有动力了。
谢谢!

On 9月3日, 下午3时50分, cnhack TNT <cnhack...@gmail.com> wrote:
> 呵呵,记得我的毕设也是 perl 完成的, SMS modem,串口通信,然后用手机发特定格式的短信到这个 modem 上面来实现记账功能,另外
> CGI::Application 做了个简单的网站来显示,修改,查询帐务
> 基本上,在学校时没硬性要求的设计类科目,全部都用 perl 完成.
>
> 2009/9/3 PIG <addm...@gmail.com>
>
>
>
> > 项目相当庞大啊。毕设多长时间。好像不太值,我记得我在做毕业设计的时候,就3天时间,写了个上位机+下位机的串口子程序。也没用的上~其他时间是去和朋友开发网站,看了看书。很滋润的大四生活。
>
> > 2009/9/2 Dill <dillisb...@gmail.com>
>
> > 谢谢提醒哦,我的毕设倒是真的想好好做做的,大三一年都在做java的项目,实在是有点厌倦了,所以趁着有个毕设熟练一下其他的。
> >> 我再考虑一下用c写算了。
>
> >> On 9月2日, 下午5时20分, 杨溪 <blackken...@gmail.com> wrote:
> >> > 友情提醒下,这个题目你那几个月做不完吧,难点不在语言本身。视频和网络的知识得先有,不然时间是不够现补的。而且毕业事也多,建议选个简单点的题目。
> >> > 支持认真做毕设!其他人怎么做是其他人的事。
--~--~---------~--~----~------------~-------~--~----~
您收到此信息是由于您订阅了 Google 论坛"PerlChina Mongers 讨论组"论坛。
要在此论坛发帖,请发电子邮件到 perlchina@googlegroups.com
要退订此论坛,请发邮件至 perlchina+unsubscribe@googlegroups.com
更多选项,请通过 http://groups.google.com/group/perlchina?hl=zh-CN 访问该论坛
-~----------~----~----~----~------~----~------~--~---

[PerlChina] Re: Perl有没有类似于WebShot的模块?

看到你的签名想起了 Perlish 

在 2009-9-4,下午3:58, Beckheng Lam 写道:

Perl乐事 -- http://www.perlersh.org
我的博客 -- http://www.perlersh.org/blog.html


--~--~---------~--~----~------------~-------~--~----~
您收到此信息是由于您订阅了 Google 论坛"PerlChina Mongers 讨论组"论坛。
 要在此论坛发帖,请发电子邮件到 perlchina@googlegroups.com
 要退订此论坛,请发邮件至 perlchina+unsubscribe@googlegroups.com
 更多选项,请通过 http://groups.google.com/group/perlchina?hl=zh-CN 访问该论坛

-~----------~----~----~----~------~----~------~--~---

[PerlChina] Perl有没有类似于WebShot的模块?

用于将一个网页存为图片格式这样的。
找到一个khtml2png是基于KDE和LINUX下的。

--
Perl乐事 -- http://www.perlersh.org
我的博客 -- http://www.perlersh.org/blog.html


--~--~---------~--~----~------------~-------~--~----~
您收到此信息是由于您订阅了 Google 论坛"PerlChina Mongers 讨论组"论坛。
要在此论坛发帖,请发电子邮件到 perlchina@googlegroups.com
要退订此论坛,请发邮件至 perlchina+unsubscribe@googlegroups.com
更多选项,请通过 http://groups.google.com/group/perlchina?hl=zh-CN 访问该论坛
-~----------~----~----~----~------~----~------~--~---

2009年9月3日星期四

[PerlChina] Re: 请教IO::Prompt 的问题

无法查看这则摘要。请 点击此处查看博文。

[PerlChina] Re: 请教IO::Prompt 的问题

无法查看这则摘要。请 点击此处查看博文。

Re: 答复: [PerlChina] Best of open source enterprise software中,php的占的份额不少!

说到 php 的 WordPress ,就不能不说 perl 的 MT :D

2009/9/4 silent <silent2600@gmail.com>:
> php的确很强劲,
> 昨天又简单的对比了一下mod_php和mod_perl的性能, 就是print "hello world";
> 我得到的结果是: 默认安装的情况下mod_php比mod_perl的handler还快不少, 比apache2::registry快1/3 -_-!
>
> 而且还没给php加上什么加速器/优化器什么的
>
> >
>

--
-----------------------
http://easun.org

--~--~---------~--~----~------------~-------~--~----~
您收到此信息是由于您订阅了 Google 论坛"PerlChina Mongers 讨论组"论坛。
要在此论坛发帖,请发电子邮件到 perlchina@googlegroups.com
要退订此论坛,请发邮件至 perlchina+unsubscribe@googlegroups.com
更多选项,请通过 http://groups.google.com/group/perlchina?hl=zh-CN 访问该论坛
-~----------~----~----~----~------~----~------~--~---

Re: 答复: [PerlChina] Best of open source enterprise software中,php的占的份额不少!

php的确很强劲,
昨天又简单的对比了一下mod_php和mod_perl的性能, 就是print "hello world";
我得到的结果是: 默认安装的情况下mod_php比mod_perl的handler还快不少, 比apache2::registry快1/3 -_-!

而且还没给php加上什么加速器/优化器什么的

--~--~---------~--~----~------------~-------~--~----~
您收到此信息是由于您订阅了 Google 论坛"PerlChina Mongers 讨论组"论坛。
要在此论坛发帖,请发电子邮件到 perlchina@googlegroups.com
要退订此论坛,请发邮件至 perlchina+unsubscribe@googlegroups.com
更多选项,请通过 http://groups.google.com/group/perlchina?hl=zh-CN 访问该论坛
-~----------~----~----~----~------~----~------~--~---

答复: [PerlChina] Best of open source enterprise software中,php的占的份额不少!

还有discuz!等等

-----邮件原件-----
发件人: perlchina@googlegroups.com [mailto:perlchina@googlegroups.com] 代表 Beckheng Lam
发送时间: 2009年9月4日 11:30
收件人: perlchina@googlegroups.com
主题: [PerlChina] Best of open source enterprise software中,php的占的份额不少!

一眼看出,WordPress,Magento,Drupal这些都是是PHP的作品,其它不大了解的。

--
Perl乐事 -- http://www.perlersh.org
我的博客 -- http://www.perlersh.org/blog.html




--~--~---------~--~----~------------~-------~--~----~
您收到此信息是由于您订阅了 Google 论坛"PerlChina Mongers 讨论组"论坛。
要在此论坛发帖,请发电子邮件到 perlchina@googlegroups.com
要退订此论坛,请发邮件至 perlchina+unsubscribe@googlegroups.com
更多选项,请通过 http://groups.google.com/group/perlchina?hl=zh-CN 访问该论坛
-~----------~----~----~----~------~----~------~--~---

[PerlChina] Best of open source enterprise software中,php的占的份额不少!

一眼看出,WordPress,Magento,Drupal这些都是是PHP的作品,其它不大了解的。

--
Perl乐事 -- http://www.perlersh.org
我的博客 -- http://www.perlersh.org/blog.html


--~--~---------~--~----~------------~-------~--~----~
您收到此信息是由于您订阅了 Google 论坛"PerlChina Mongers 讨论组"论坛。
要在此论坛发帖,请发电子邮件到 perlchina@googlegroups.com
要退订此论坛,请发邮件至 perlchina+unsubscribe@googlegroups.com
更多选项,请通过 http://groups.google.com/group/perlchina?hl=zh-CN 访问该论坛
-~----------~----~----~----~------~----~------~--~---

[PerlChina] Re: 我写的总是不对.perl像google首页一样去掉html多余代码的正则怎么写?

sorry , 我不懂html,
 
不过,就regex 来讲,应该是可以做到的,  就是写的复杂些吧
 


 
2009/9/3 Haiyan Lin <linhy0120@gmail.com>
好像有模块可以。刚从一本书上读到的代码。自己还没试过。把“http://www.braingia.org"换成你自己想用的网址试试看。

!/usr/bin/perl -w
use strict;
use HTML::TreeBuilder;
use HTML::FormatText;
use LWP::Simple;
my $webpage = get("http://www.braingia.org/");
my $htmltree = HTML::TreeBuilder->new->parse($webpage);
my $output = HTML::FormatText->new();
print $output->format($htmltree);


----- Original Message -----
From: "蓝天下云层上" <imx365ster@gmail.com>
To: "PerlChina Mongers 讨论组" <perlchina@googlegroups.com>
Sent: Wednesday, September 02, 2009 4:32 PM
Subject: [PerlChina] 我写的总是不对.perl像google首页一样去掉html多余代码的正则怎么写?


> 我写的总是不对.perl像google首页一样去掉html多余代码的正则怎么写?
>
> $msg = <html文件>
>
> $msg =~ s/~>\s+<~//g;
> $msg =~ s/~>\s+\r?\n~//g;
> $msg =~ s/<!--{2,}.*?-{2,}>//g;
> $msg =~ s/<!--\[/!\]*?\[^<>\]*?>//g;
>
> 总是不对,不知道是哪不对?
>
> >
>





--
           Yours Sincerely
                   Zeng Hong

--~--~---------~--~----~------------~-------~--~----~
您收到此信息是由于您订阅了 Google 论坛"PerlChina Mongers 讨论组"论坛。
 要在此论坛发帖,请发电子邮件到 perlchina@googlegroups.com
 要退订此论坛,请发邮件至 perlchina+unsubscribe@googlegroups.com
 更多选项,请通过 http://groups.google.com/group/perlchina?hl=zh-CN 访问该论坛

-~----------~----~----~----~------~----~------~--~---