Query an IP from file

2007-05-22 Thread Jeff Pang
Hello, I have a text file which contains lots of IPs,like: 58.253.0.0/16; 58.254.0.0/16; 58.255.0.0/16; 60.0.0.0/16; 60.1.0.0/16; 60.10.0.0/16; 60.16.0.0/16; 60.17.0.0/16; 60.18.0.0/16; 60.19.0.0/16; 60.2.0.0/16; 60.20.0.0/16; 60.21.0.0/16; 60.22.0.0/16; 60.23.0.0/16; 60.3.0.0/16; My question

Problem with Spreadsheet::ParseExcel

2007-05-22 Thread Nath, Alok (STSD)
Hi, When I call use Spreadsheet::ParseExcel in my program I get this error. Weak references are not implemented in the version of perl at C:/Perl/lib/Spreadsheet/ParseExcel.pm line 67 BEGIN failed--compilation aborted at C:/Perl/lib/Spreadsheet/ParseExcel.pm line 67. Compilation failed

RE: Query an IP from file

2007-05-22 Thread Thomas Bätzler
Hi, Jeff Pang [EMAIL PROTECTED] asked: I have a text file which contains lots of IPs,like: 58.253.0.0/16; 58.254.0.0/16; 58.255.0.0/16; 60.0.0.0/16; 60.1.0.0/16; 60.10.0.0/16; 60.16.0.0/16; 60.17.0.0/16; 60.18.0.0/16; 60.19.0.0/16; 60.2.0.0/16; 60.20.0.0/16; 60.21.0.0/16;

Re: syscall getpwnam and changing authetication on system

2007-05-22 Thread Martin Barth
Hi, afer trying a lot of stuff i figured out that following code line works: my ($login,$pass,$uid,$gid) = (getpwnam($user),rand); without rand it's still the old user... can anyone explain why perl seems to cache this? (even without eval) Tom Phoenix schrieb: On 5/18/07, Martin Barth

Re: Query an IP from file

2007-05-22 Thread John W. Krahn
Jeff Pang wrote: Hello, Hello, I have a text file which contains lots of IPs,like: 58.253.0.0/16; 58.254.0.0/16; 58.255.0.0/16; 60.0.0.0/16; 60.1.0.0/16; 60.10.0.0/16; 60.16.0.0/16; 60.17.0.0/16; 60.18.0.0/16; 60.19.0.0/16; 60.2.0.0/16; 60.20.0.0/16; 60.21.0.0/16;

Simplification of the code

2007-05-22 Thread Nath, Alok (STSD)
Hi, Can anybody help me to simplify the for loops here ? It parses the excel file. foreach my $col (1..10){ push @row_1, $Sheet-Cells(1, $col)-{'Value'} ; } my @node_names = th([EMAIL PROTECTED]); foreach my $col

Re: Simplification of the code

2007-05-22 Thread yitzle
foreach my $col (1..10){ push @row_1, $Sheet-Cells(1, $col)-{'Value'} ; } becomes push @row_1, $Sheet-Cells(1, $_)-{'Value'} for (1..10); You can likely join all 3 into one loop, but I can't think how off the top of my head. -- To unsubscribe, e-mail: [EMAIL

Re: Convert german umlaut to ascii

2007-05-22 Thread Adriano Ferreira
On 5/21/07, Andreas Moroder [EMAIL PROTECTED] wrote: Hello, in our application I have to convert all german Umlaute in a string to a two char combination ä to ae, Ö to OE and so on. Can anyone please tell me how to do this ? Use Lingua::DE::ASCII.

Re: Problem with Spreadsheet::ParseExcel

2007-05-22 Thread Jenda Krynicky
From: Nath, Alok (STSD) [EMAIL PROTECTED] Hi, When I call use Spreadsheet::ParseExcel in my program I get this error. Weak references are not implemented in the version of perl at C:/Perl/lib/Spreadsheet/ParseExcel.pm line 67 BEGIN failed--compilation aborted at

Re: Simplification of the code

2007-05-22 Thread Jenda Krynicky
Subject:Simplification of the code Date sent: Tue, 22 May 2007 19:04:01 +0530 From: Nath, Alok (STSD) [EMAIL PROTECTED] To: beginners@perl.org Hi, Can anybody help me to simplify the for loops here ? It parses the

Re: Simplification of the code

2007-05-22 Thread Rob Dixon
Nath, Alok (STSD) wrote: Can anybody help me to simplify the for loops here ? It parses the excel file. foreach my $col (1..10){ push @row_1, $Sheet-Cells(1, $col)-{'Value'} ; } my @node_names = th([EMAIL PROTECTED]); foreach my $col (1..10){ push @row_2,

parsing html data

2007-05-22 Thread xavier mas
dear all, I'm trying to make a consult to a online dictionary from an html document, the result of the consult has to be output in a text field of the same html document. I understand this can be done using (perl) cgi scripts but am not sure which module do I need for that. Any suggestions?

Re: Query an IP from file

2007-05-22 Thread yaron
Hi Jeff, Can you be more specific regarding the query duty cycle. Do you want to read the file once and query it many times? Can the file change during queries? How much entries can be in such a file? Any solution that you will decide to use will be influence from such questions. with

Re: parsing html data

2007-05-22 Thread David Moreno Garza
xavier mas wrote: dear all, I'm trying to make a consult to a online dictionary from an html document, the result of the consult has to be output in a text field of the same html document. I understand this can be done using (perl) cgi scripts but am not sure which module do I need

Re: overriding posix::uname

2007-05-22 Thread David Moreno Garza
Funny thing: Jeff Pang wrote: $ perl -e 'print $^O' linux User-Agent: Thunderbird 2.0.0.0 (Windows/20070326) Just trolling :-) -- David Moreno Garza [EMAIL PROTECTED] | http://www.damog.net/ Saca tus alas y empieza a volar. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

Re: parsing html data

2007-05-22 Thread xavier mas
El Martes 22 Mayo 2007 22:00, David Moreno Garza escribió: xavier mas wrote: dear all, I'm trying to make a consult to a online dictionary from an html document, the result of the consult has to be output in a text field of the same html document. I understand this can be done using

Re: parsing html data

2007-05-22 Thread yaron
Hi, If the problem is to get dictionary translation, I think you should not work directkly with LWP or WWW::Mechanize. Those modules provides convinient way to get the answer in HTML. This will force you to hack html files. Altwernatively, you can use dictionaries that provides API like

Re: logic not working

2007-05-22 Thread John W. Krahn
Tony Heal wrote: OK I am probably missing something stupid, but I can not get this to work. The output should be 'Daily-{day of week)-{MMM}-{DD}-{}' for Sunday thru Friday and 'Weekly-{1|2|3}-{day of week)-{MMM}-{DD}-{} for Saturday and every fourth Saturday should start rotating

Re: overriding posix::uname

2007-05-22 Thread Jeff Pang
David Moreno Garza 写道: Funny thing: Jeff Pang wrote: $ perl -e 'print $^O' linux User-Agent: Thunderbird 2.0.0.0 (Windows/20070326) Just trolling :-) I'm confused,what do you mean? -- http://home.arcor.de/jeffpang/ -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,

Re: Convert german umlaut to ascii

2007-05-22 Thread Andreas Moroder
Thank you to all for your help. Andreas -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/