2008年11月16日星期日

Re: [PerlChina] test again

我也是,一直在努力地尝试。

张晓亮 wrote:
> 我不能发邮件到这里.
>
>
>
>
> ----- Original Message -----
> From: "Ken Lam" <bi.ken.lam@gmail.com>
> To: <china-pm@pm.org>
> Sent: Sunday, November 16, 2008 11:51 PM
> Subject: [PerlChina] test again
>
>
>
>> 测试一下。
>>
>>

_______________________________________________
China-pm mailing list
China-pm@pm.org
http://mail.pm.org/mailman/listinfo/china-pm

Re: [PerlChina] test again

我不能发邮件到这里.




----- Original Message -----
From: "Ken Lam" <bi.ken.lam@gmail.com>
To: <china-pm@pm.org>
Sent: Sunday, November 16, 2008 11:51 PM
Subject: [PerlChina] test again


> 测试一下。
>
> _______________________________________________
> China-pm mailing list
> China-pm@pm.org
> http://mail.pm.org/mailman/listinfo/china-pm
_______________________________________________
China-pm mailing list
China-pm@pm.org
http://mail.pm.org/mailman/listinfo/china-pm

Re: [PerlChina] perl怎么读取文件或者路径参数

<> 是用来快速读取参数提供的文件的内容或者data块定义的数据
用readdir吧

2008/11/17 owen nirvana <freeespeech@gmail.com>
我用<>总是不得要领,

my ($file) = @_,取到的总是文件行数,如果是@file则是文件内容
但是 @_不应该是参数列表吗,为什么不是 filename呢, 如果是输入路径的话,@_甚至 == 0,

但是我很希望能够直接在参数里得到路径名,然后批量打开某些类型的文件, 还请各位指教


还有一个问题,是关于提取数据的

2222  eewweasdds,asdasd.sadsadasdas
         ddasdddddddddddddddddddda
         ddddddddddddddddddddddddddd
2821  easdddddddddddddddddddddddd
2192  288888888888888888888ass0a-das.
         as;dddsaddaa0---------22222222

诸如此类,左边很好办,可是右边并不限于单行,我该如何把这样的数据提取为  name title的格式存到数据表里呢
gtalk:freeespeech@gmail.com
_______________________________________________
China-pm mailing list
China-pm@pm.org
http://mail.pm.org/mailman/listinfo/china-pm



--
"老是呆在那里不好,我们随生活需要四处迁徙,多年以来的梦想,至今还未实现,压力堵塞了我们的耳朵,工作生涯到了尽头,还是一无所有,我们应该给后人留下点儿什么,教训是不会刻在纪念碑上的,光荣的命令和指引之手,也可请求,简单地改变一下角度就足够了"

[PerlChina] perl怎么读取文件或者路径参数

我用<>总是不得要领,

my ($file) = @_,取到的总是文件行数,如果是@file则是文件内容
但是 @_不应该是参数列表吗,为什么不是 filename呢, 如果是输入路径的话,@_甚至 == 0,

但是我很希望能够直接在参数里得到路径名,然后批量打开某些类型的文件, 还请各位指教


还有一个问题,是关于提取数据的

2222 eewweasdds,asdasd.sadsadasdas
ddasdddddddddddddddddddda
ddddddddddddddddddddddddddd
2821 easdddddddddddddddddddddddd
2192 288888888888888888888ass0a-das.
as;dddsaddaa0---------22222222

诸如此类,左边很好办,可是右边并不限于单行,我该如何把这样的数据提取为 name title的格式存到数据表里呢
gtalk:freeespeech@gmail.com
_______________________________________________
China-pm mailing list
China-pm@pm.org
http://mail.pm.org/mailman/listinfo/china-pm

[PerlChina] test again

测试一下。

_______________________________________________
China-pm mailing list
China-pm@pm.org
http://mail.pm.org/mailman/listinfo/china-pm

[PerlChina] 有没有弹气球的模块?

就是在 windows xp/2000 下弹气球提示的模块,想平常用这个来提示一些网站和某些数据的更新……perl hacks 里头有
mac 的例子,好像找不到适用 win 的。

--
Use Google Gmail!
Fred Allen - "An associate producer is the only guy in Hollywood who
will associate with a producer."
_______________________________________________
China-pm mailing list
China-pm@pm.org
http://mail.pm.org/mailman/listinfo/china-pm

2008年11月14日星期五

Re: [PerlChina] perl shell in activeperl

Thanks. It works. I added user environment variable "PERL_RL" with value "o=0" to my computer. Both dbish and CPAN shell look clean now.

From: Adriano Ferreira <aferreira@shopzilla.com>
To: china-pm@pm.org
Sent: Thursday, November 13, 2008 11:38:40 PM
Subject: Re: [PerlChina] perl shell in activeperl

2008/11/13 tiger peng <tigerpeng2001@yahoo.com>:
> Hello,
>
> I am new to activeperl. Today, I installed DBI::Shell and played with dbish
> and ran into problem: the echoed input seems being wrapped by escaping
> characters. For example, when I entered "dev" the screen show
> "←[1md←[0m←[1me←[0m←[1mv←[0m". Could anyone tell me how to get a clean
> screen?

I think that's because the Perl terminal is trying to use ornaments
(you're seen ANSI escapes which are used to change the color and
brightness of the text and to control the terminal). But cmd.exe does
not provide an ANSI terminal.

As DBI::Shell uses Term::ReadLine, I think you can disable that by
defining an environment variable PERL_RL with the value

> set PERL_RL= o=0

as explained here:

http://search.cpan.org/perldoc?Term::ReadLine#ENVIRONMENT

Maybe there is a more reasonable way to do it by adding some lines to
the configuration file of DBI::Shell, but that should at least work.

Regards,
Adriano

> Thanks,
>
> Tiger,
>
> _______________________________________________
> China-pm mailing list
> China-pm@pm.org
> http://mail.pm.org/mailman/listinfo/china-pm
>
_______________________________________________
China-pm mailing list
China-pm@pm.org
http://mail.pm.org/mailman/listinfo/china-pm