RE: what's your most favourite feature of perl?

2006-12-24 Thread zhao_bingfeng
Well, if I'm allowed select more than one, I will add regular expressions and context semantics. Regex support of perl is the de facto standard, power and easy use. The context semantics make perl do just as I want to do. bingfeng > -Original Message- > From: Todd W [mailto:[EMAIL PROTECT

Re: what's your most favourite feature of perl?

2006-12-24 Thread Todd W
<[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] Just a simple survey. As a perl fan, I'd like know what's make you are so enthusiastic with perl. As for me, I vote the smart data structure design:) the CPAN, regular expressions, and autovivification Todd W. -- To unsubscribe, e-m

what's your most favourite feature of perl?

2006-12-24 Thread zhao_bingfeng
Just a simple survey. As a perl fan, I'd like know what's make you are so enthusiastic with perl. As for me, I vote the smart data structure design:) --- There is only one thing more painful than learning from experience and that is not learning

Re: [PBML] system() command with a time limit

2006-12-24 Thread Randal L. Schwartz
> "Kelly" == Kelly Jones <[EMAIL PROTECTED]> writes: Kelly> I want to use system() (or `command`) to run an external command from Kelly> my Perl script. However, if the external command takes more than 30 Kelly> seconds (for example) to run, I want to kill it, and move on with the Kelly> rest

Re: system() command with a time limit

2006-12-24 Thread Jeff Pang
Using eval. eval { local $SIG{ALRM} = sub {die "something is wrong"}; alarm 30; do_something... alarm 0; }; if ($@) { handle_for_the_errors(); } -Original Message- >From: Kelly Jones <[EMAIL PRO

system() command with a time limit

2006-12-24 Thread Kelly Jones
I want to use system() (or `command`) to run an external command from my Perl script. However, if the external command takes more than 30 seconds (for example) to run, I want to kill it, and move on with the rest of my Perl script. How do I do this? -- We're just a Bunch Of Regular Guys, a collec

Re: run script on multiple files

2006-12-24 Thread John W. Krahn
Kirk Wythers wrote: > > On Dec 24, 2006, at 2:59 AM, John W. Krahn wrote: > >> Yes I saw where you tested $year but since I don't have the actual >> data to >> test with I had to guess, and I guess I guessed wrong. :-) > > I thought you did an amazing job at guessing what I intended without >

Re: run script on multiple files

2006-12-24 Thread Kirk Wythers
On Dec 24, 2006, at 2:59 AM, John W. Krahn wrote: Yes I saw where you tested $year but since I don't have the actual data to test with I had to guess, and I guess I guessed wrong. :-) I thought you did an amazing job at guessing what I intended without being able to look at a datafile

Problems with installing WWW::Mechanize::Shell

2006-12-24 Thread Raphael Brunner
Dear Users... I want to install WWW::Mechanize::Shell on a actual debian-testing linux-box. Perl seems to normaly installed. But, I have errors during the install-process and don't know how to solve it btw. what the problem is... (please see at the end of this messages). Thanks for any help and

Re: XML in, XML out

2006-12-24 Thread Rob Dixon
Randal L. Schwartz wrote: "Rob" == Rob Dixon <[EMAIL PROTECTED]> writes: Rob> my @bad = $doc->findnodes(q{//address[starts-with(code, "BJPU")]}); Actualy, doesn't that require code immediately below addess? Yes Don't you want .//code there ? Almost certainly not. In the example XML appe

Re: run script on multiple files

2006-12-24 Thread John W. Krahn
Kirk Wythers wrote: > > I think I see what is happening. John's script was crashing at the end > of the first file with an error that I saw earlier when writing my > script. There is a footer at the end of each file and as soon as the > script hits the footer junk, it gives: > > Use of uniniti