Socket Problem

2005-09-01 Thread Jeff Pan
HI, I have a pair of C/S socket scripts running for a long time,without any problem.There is just one server,and more than 120 clients,which all run on linux box. This day,beacuse of our network blocking,which mean many lost packages,my server script became incorrect.It fork more than 1000 child

Re: Need help... packages

2005-09-01 Thread John W. Krahn
Luinrandir wrote: OK.. maybe I'm trying to be too fancy. the package is: ### package Names; @Countries(Ireland,Wales); The '@' sigil can only be in front of an array or a slice. You probably meant: @Countries = ( Ireland, Wales ); %Lord{Ireland}=(Bob,Tom);

utf8::upgrade,utf8::encode and utf8::is_utf8 on EBCDIC platform

2005-09-01 Thread mohammad yaseen
Hi, This are the tetstcase i'm runing on EBCDIC platform, my $b = chr(0x0FF); $p=utf8::upgrade($b); print \n$p; utf8::upgarde returns the number of octets necessary to represent the string as UTF-X. EBCDIC output is 1 whereas ASCII platform output is 2. Is the return value i'm getting on

RE: Need help... packages

2005-09-01 Thread Charles K. Clarkson
Luinrandir mailto:[EMAIL PROTECTED] wrote: : OK.. maybe I'm trying to be too fancy. : : the package is: : ### : package Names; : @Countries(Ireland,Wales); : %Lord{Ireland}=(Bob,Tom); : %Lord{Wales}=(Ted,Ned); : : return 1; : # : the program is: :

Re: tricky list comparison problem

2005-09-01 Thread John W. Krahn
Jason Ross wrote: Hello. Hello, I'm having a bit of an issue with a script I'm working on. The goal is to parse the output of the solaris `prtvtoc` command and do some things based on it. I've got that part down, and am placing the bits I care about into a hash which is best written (I

Re: Parsing HTML

2005-09-01 Thread Scott Taylor
Jenda Krynicky said: From: Scott Taylor [EMAIL PROTECTED] I'm probably reinventing the wheel here, but I tried to get along with HTML::Parser and just couldn't get it to do anything. To confusing, I think. I simply want to get a list or real words from an HTML string, minus all the HTML

Re: Parsing HTML

2005-09-01 Thread Scott Taylor
Jenda Krynicky said: From: Scott Taylor [EMAIL PROTECTED] I'm probably reinventing the wheel here, but I tried to get along with HTML::Parser and just couldn't get it to do anything. To confusing, I think. I simply want to get a list or real words from an HTML string, minus all the HTML

Re: tricky list comparison problem

2005-09-01 Thread Jason Ross
heh. i didn't realize i sucked this bad =) On 9/1/05, John W. Krahn [EMAIL PROTECTED] wrote: Anyway, the issue I have is that I need to determine where there are gaps between the first sector and last sector (on the entire disk, not on a given partition). How do you determine which

Net::SMTP and a hash of arrays

2005-09-01 Thread Ryan Frantz
Perlers, I need to send an email to several different recipients, all at different mail servers. I thought that a hash of arrays (my first time) would do the job nicely, but Net::SMTP complains that I can't coerce array into hash. Here's my script (Win32): # hash the recipients - a

Re: utf8::upgrade,utf8::encode and utf8::is_utf8 on EBCDIC platform

2005-09-01 Thread SADAHIRO Tomoyuki
Hello. I think it is correct. On EBCDIC platforms, perl uses UTF-EBCDIC instead of UTF-8, nevertheless perl calls it utf8. In general chr(0xFF) (equals to \xFF) in EBCDIC encodings corresponds to U+009F, that is a single-octet control character; thus a single octet sequence \xFF is well-form in

Please Help!!! Newbie Question

2005-09-01 Thread Perl
Hi List, I have this script which actually returns the value of the filename with extension but If the file name is something like c:\projects\text 009.txt (having a space in filename which is common in windows). This script only returns text instead of returning full name of file. Here is the

Re: tricky list comparison problem

2005-09-01 Thread Randy W. Sims
Jason Ross wrote: Anyway, the issue I have is that I need to determine where there are gaps between the first sector and last sector (on the entire disk, not on a given partition). So, for example, using the sample data below, I want to return 2097415 - 69078878 as available sectors. Hi

Re: Please Help!!! Newbie Question

2005-09-01 Thread Randy W. Sims
Perl wrote: Hi List, I have this script which actually returns the value of the filename with extension but If the file name is something like c:\projects\text 009.txt (having a space in filename which is common in windows). This script only returns text instead of returning full name of file.

Need help... packages again

2005-09-01 Thread Luinrandir
in the package: @Countries=(Ireland,Iceland); $Lord{Ireland}=(Ambros,Baird,Cabhan,Dahey,Eirnin,Fergus,Glendan ,Hugh,Innis, Liam,Murtagh,Orin,Pierce,Quinn,Ronan,Scolaighe,Turlach,Luin randir); $Lord{Iceland}=(Sigurður,Guðmundur,Jón,Gunnar,Ólafur,Magnús,Ein ar, Kristján,Björn,Bjarni); in the CGI

Re: Need help... packages again -more

2005-09-01 Thread Luinrandir
Clark.. thanks for the help, I have to decode (look in my book and figure out what you wrote) some of the code you wrote. just wanna says thanks, but its way over my head :) but look at the seconf loop! i'm begining to understand how to use those hidden , double secret invisable vars!-Lou In the

RE: Please Help!!! Newbie Question

2005-09-01 Thread Bakken, Luke
Perl wrote: Hi List, I have this script which actually returns the value of the filename with extension but If the file name is something like c:\projects\text 009.txt (having a space in filename which is common in windows). This script only returns text instead of returning full name of