Re: Replace string with list of strings via character changes

2009-04-12 Thread Dr.Ruud
Kelly Jones wrote: I want to ASCII-ify the geonames alternatenames table using iso-8859-1. Also try Text::Unidecode. -- Ruud -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/

Error by make an ARM system.

2009-04-12 Thread Tecno-World
I read a lot of messages and faqs, but nothing helps really. I tried to attach the messages during the ./Configure and the make, but the mailing list accepts only 50kB. I filtered the messages a little bit… Where is the error, what goes wrong? The System is a at91 ARM CPU from Atmel, i

Re: How to login from one system (A) into remote system (B) and do a ping to the third system (C) with Perl and CGI !

2009-04-12 Thread Amit Saxena
On Fri, Apr 10, 2009 at 11:48 AM, Zhao, Bingfeng bingfeng.z...@ca.comwrote: With windows platform, there is also a similar way, you can use psexec utility from sysinternals, now acquired by Microsoft - http://technet.microsoft.com/en-us/sysinternals/bb897553.aspx I had done a lot remote

catching outputs of realtime apps (e.g; 'top(8)'

2009-04-12 Thread Michael Alipio
Hi, I have a program that constantly displays values on the screen. The program 'ping' for example. What I'd like to do is watch the output and as soon as i see some values, i would do something. For example, as suppose when pinging a host I would constantly get a reply. however, if I remove

Re: catching outputs of realtime apps (e.g; 'top(8)'

2009-04-12 Thread Chas. Owens
On Sun, Apr 12, 2009 at 14:14, Michael Alipio daem0n...@yahoo.com wrote: Hi, I have a program that constantly displays values on the screen. The program 'ping' for example. What I'd like to do is watch the output and as soon as i see some values, i would do something. For example, as

Re: catching outputs of realtime apps (e.g; 'top(8)'

2009-04-12 Thread Michael Alipio
Hi, My problem is the program I want to watch the output of doesn't output stream of data. instead, data is presented on the screen and values change constantly, e.g increasing counters. I think it is more like the top program. How do i tell the program to be on logging mode like top? ---

escaping regex to do math on backreferences

2009-04-12 Thread Andrew Fithian
Hello everyone, I have a program that needs to find straights in a hand of cards. The hand is a string with no whitespace sorted by the cards' ranks, eg 9d10cJhQsKd. How can I identify if that hand contains a straight with a single regex? Is that even possible? Is there a way to escape the regex

Re: catching outputs of realtime apps (e.g; 'top(8)'

2009-04-12 Thread Chas. Owens
On Sun, Apr 12, 2009 at 17:02, Michael Alipio daem0n...@yahoo.com wrote: Hi, My problem is the program I want to watch the output of doesn't output stream of data. instead, data is presented on the screen and values change constantly, e.g increasing counters. I think it is more like the top

Re: escaping regex to do math on backreferences

2009-04-12 Thread Gunnar Hjalmarsson
Andrew Fithian wrote: I have a program that needs to find straights in a hand of cards. Only straights? The hand is a string with no whitespace sorted by the cards' ranks, eg 9d10cJhQsKd. How can I identify if that hand contains a straight with a single regex? Why on earth would you want

Re: escaping regex to do math on backreferences

2009-04-12 Thread Chas. Owens
On Sun, Apr 12, 2009 at 18:34, Andrew Fithian afit...@gmail.com wrote: Hello everyone, I have a program that needs to find straights in a hand of cards. The hand is a string with no whitespace sorted by the cards' ranks, eg 9d10cJhQsKd. How can I identify if that hand contains a straight with

Re: escaping regex to do math on backreferences

2009-04-12 Thread Gunnar Hjalmarsson
Chas. Owens wrote: my @rank = qw/ 2 3 4 5 6 7 8 9 10 J Q K A /; my @rank = qw/A 2 3 4 5 6 7 8 9 10 J Q K A /; --^ -- Gunnar Hjalmarsson Email: http://www.gunnar.cc/cgi-bin/contact.pl -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands,

Re: escaping regex to do math on backreferences

2009-04-12 Thread Chas. Owens
On Sun, Apr 12, 2009 at 21:58, Gunnar Hjalmarsson nore...@gunnar.cc wrote: Chas. Owens wrote: my @rank = qw/ 2 3 4 5 6 7 8 9 10 J Q K A /;    my @rank = qw/A 2 3 4 5 6 7 8 9 10 J Q K A /; --^ snip That depends on who you play with. Also, if you make that change you need to

Re: catching outputs of realtime apps (e.g; 'top(8)'

2009-04-12 Thread Michael Alipio
The problem is, the program is quite big. And it is written in C. I'm still on chapter 4 of KR. I don't think it would make any difference even after i finished it. I've read that the program writes the final tally of values into a text file, perhaps I will just try to parse it. thanks. ---