谢谢给出的模块,我的想法您理解错了,我不是在找模块!而是看是否能有个html正则提取出标签中想要的字串,再替换之!想针对html代码来处理,而不是把实际文件来进行合并
DEFAULT_SIGNATURE_MYIPAD 在 2012-5-11,16:07,Fayland Lam <[email protected]> 写道: > if you're using Plack, check > http://search.cpan.org/perldoc?Plack::Middleware::StaticShared > if you're using Catalyst, check > http://search.cpan.org/perldoc?Catalyst::Controller::Combine > > there is other modules too. you can search it in CPAN. > > Thanks > > On Friday, May 11, 2012 1:42:56 PM UTC+8, 蓝天下云层上 wrote: > <html> > <head> > <script src="/js/a.js"</script> > <script src="/js/b.js"</script> > <script src="/js/c.js"</script> > </head> > <body> > </body> > <script src="/js/d.js"</script> > </html> > > 像a.js b.js c.js 这三个script标签是连续的,用perl把这连续的三个处理成一个如下,该怎么写啊? > <html> > <head> > <script src="/js/a.js,b.js,c.js"</script> > </head> > <body> > </body> > <script src="/js/d.js"</script> > </html> > > -- > 您收到此邮件是因为您订阅了 Google 网上论坛的“PerlChina Mongers 讨论组”论坛。 > 要在网络上查看此讨论,请访问 https://groups.google.com/d/msg/perlchina/-/r9rbw2wO_okJ。 > 要向此网上论坛发帖,请发送电子邮件至 [email protected]。 > 要取消订阅此网上论坛,请发送电子邮件至 [email protected]。 > 若有更多问题,请通过 http://groups.google.com/group/perlchina?hl=zh-CN 访问此网上论坛。 -- 您收到此邮件是因为您订阅了 Google 网上论坛的“PerlChina Mongers 讨论组”论坛。 要向此网上论坛发帖,请发送电子邮件至 [email protected]。 要取消订阅此网上论坛,请发送电子邮件至 [email protected]。 若有更多问题,请通过 http://groups.google.com/group/perlchina?hl=zh-CN 访问此网上论坛。
