Re: Inet::Socket::INET's line read fails

2005-12-05 Thread Foo Ji-Haw
Thanks for the good tip John and Bill, Will give sysread a go. $Bill Luebkert wrote: Foo Ji-Haw wrote: Hi all, Just want to share and ask something about reading from the sockets. Normally my connection to the Other Side receives line inputs. But not all the time the eol character is st

Re: Inet::Socket::INET's line read fails

2005-12-05 Thread $Bill Luebkert
Foo Ji-Haw wrote: > Hi all, > > Just want to share and ask something about reading from the sockets. > Normally my connection to the Other Side receives line inputs. But not > all the time the eol character is standard across the various remote > connections; sometimes it's just a 0x0D. > > I

RE: Inet::Socket::INET's line read fails

2005-12-05 Thread John Serink
Use sysread. You might want to use the IO:Select module to check if the call will block before calling... gives you a bit more control. Cheers, john > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Foo Ji-Haw > Sent: Tuesday, December 06, 2005 12

Inet::Socket::INET's line read fails

2005-12-05 Thread Foo Ji-Haw
Hi all, Just want to share and ask something about reading from the sockets. Normally my connection to the Other Side receives line inputs. But not all the time the eol character is standard across the various remote connections; sometimes it's just a 0x0D. I realise that <$socket> does not a

Re: Executing an external program from a perl scrip.

2005-12-05 Thread Chris Wagner
At 04:02 PM 12/5/2005 -0300, Alejandro Santillan wrote: >Trying to migrate a perl script from linux to windows (IIS), I need to >execute a command line from within the perl script. >This snippet worked fine in linux (provided the path is correct), but it >didn't work in windows: That sounds very m

RE: Executing an external program from a perl scrip.

2005-12-05 Thread John Serink
First: use "\" not "/". Second: You have to escape the "\" with a second "\" when using double quotes. Your line needs to read: $sys="C:\\antiword\\antiword.exe -t -w 1 document.doc > C:\\Inetpub\\wwwroot\\somedir\\document.txt"; That shou'd work. Alternatively, you could do it this way: $sy

Re: NMAKE problem

2005-12-05 Thread George
sorry,,, I changed my mail to text only. I don't know why the html is showing up on the board - Original Message From: "Randy Kobes" <[EMAIL PROTECTED]> To: "George" <[EMAIL PROTECTED]> Cc: perl-win32-users@listserv.ActiveState.com Subject: Re: NMAKE problem Date: 03/12/05 15:41

RE: OEAPI from NEXTRA

2005-12-05 Thread Steven Manross
It depends on the threading model of the COM object.. Perl OLE is not multithreading capable yet (and probably won't be any time soon (But, leave it to Jan to prove me wrong). But yes, in general, Perl can call COM components (like Outlook, Excel, Word, ChartDirector and others) with Win32::OLE.

Re: True Story

2005-12-05 Thread Mitch
On Mon, 5 Dec 2005 15:32:33 -0500, John Shea <[EMAIL PROTECTED]> wrote: [all snipped] What follows will be meaningless to anybody outside the UK. Apologies to all those who regard the posting of irrelevant comments on this list as a heinous crime. I have always bridled at the accusation that I a

RE: True Story

2005-12-05 Thread Hicks, Robert
> -Original Message- > I used to work in retail and one day I was visited by an entire > family in camo. I stood there for awhile looking past them and finally > one of them spoke. I jumped, looked him in the eye, and exclaimed, > "Wow. I didn't see you guys!" > > He didn't get it.

Re: True Story

2005-12-05 Thread John Shea
I was in the Army when it went to the BDU (battle dress uniform). It was the source of numerous similar jokes in my unit. John T Shea DeveloperOn 12/5/05, Charles K. Clarkson <[EMAIL PROTECTED]> wrote: Jerry Kassebaum <> wrote:: I was in the mall with my Perl book, wearing my son's Marine pants: f

Executing an external program from a perl scrip.

2005-12-05 Thread Alejandro Santillan
Trying to migrate a perl script from linux to windows (IIS), I need to execute a command line from within the perl script. This snippet worked fine in linux (provided the path is correct), but it didn't work in windows: $sys="C:/antiword/antiword.exe -t -w 1 document.doc > C:/Inetpub/wwwroot/s

RE: True Story

2005-12-05 Thread Charles K. Clarkson
Jerry Kassebaum <> wrote: : I was in the mall with my Perl book, wearing my son's Marine pants : from basic training. (I like to have something to read while my wife : shops.) : : A young man comes up to me and says, "Where did you get the new : camoh?" (I didn't get that last word.) : : I showe

OEAPI from NEXTRA

2005-12-05 Thread prichcre
Does anyone have any experience with the OEAPI product from NEKTRA? Here are the "General Features" from their web site: . All the functionality is implemented in a COM object. . A demo application written in Visual Basic is included in the package. . A demo application written in Visual C++

True Story

2005-12-05 Thread Jerry Kassebaum
I was in the mall with my Perl book, wearing my son's Marine pants from basic training. (I like to have something to read while my wife shops.) A young man comes up to me and says, "Where did you get the new camoh?" (I didn't get that last word.) I showed him the book, about to explain that t

RE: Creating a new directory from a script under windows

2005-12-05 Thread McGlinchy, Alistair
Alejandro Santillan wrote: > The directory > is create while the scrip runs under linux, but under windows > it is not able to do it. It seems a permission problem, but > the directory has all the permissions enabled and none > disabled. The mkdir part of the script doesn't work, as it > seems

Re: split() skipping trailing delimiters

2005-12-05 Thread DZ-Jay
Joe Discenza wrote: DZ-Jay wrote, on Mon 05-Dec-05 07:58 : I have a problem using the split() function: When there are trailing : delimiters, without any content between them, split() skips them. For From "perldoc -f split": If LIMIT is specified and positive, splits int

Re: AW: split() skipping trailing delimiters

2005-12-05 Thread DZ-Jay
Oh, you know, I just saw that. Hum, I wonder how I missed it. Anyway, then I guess using this would do... split /,/, $foo, -1; dZ. Andreas.Kamentz wrote: Hi dZ, According to documentation, the prototype of split has a third parameter: split /PATTERN/, EXPR, LIMIT If LIMIT

RE: Creating a new directory from a script under windows

2005-12-05 Thread Bullock, Howard A.
See   use File::Path;    mkpath(['/foo/bar/baz', 'blurfl/quux'], 1, 0711);    rmtree(['foo/bar/baz', 'blurfl/quux'], 1, 1);   ___ Perl-Win32-Users mailing list Perl-Win32-Users@listserv.ActiveState.com To unsubscribe: http://listserv.Acti

Re: Creating a new directory from a script under windows

2005-12-05 Thread Chris Wagner
At 09:33 AM 12/5/2005 -0300, Alejandro Santillan wrote: >The directory is create while the scrip runs under linux, but under windows >it is not able to do it. What webserver are u using? IIS has known finicky permission problems. >#now trying to create the session 11232 that fails >$sys = "mkdi

Re: Creating a new directory from a script under windows

2005-12-05 Thread mark pryor
Alejandro Santillan <[EMAIL PROTECTED]> wrote: I am programing a cgi that performs a series of tasks while interacting withthe client and that should keep a session alive for a week.In order to do that I decided to create a session directory each time aclient sings up.The directory is create while

Re: split() skipping trailing delimiters

2005-12-05 Thread James Sluka
DZ-Jay wrote: Hello: I have a problem using the split() function: When there are trailing delimiters, without any content between them, split() skips them. For example, this: my @foo = split(/,/, 'this,is,a,test,,'); yields: this is a test while I'm expecting:

AW: split() skipping trailing delimiters

2005-12-05 Thread Andreas.Kamentz
Hi dZ, According to documentation, the prototype of split has a third parameter: split /PATTERN/, EXPR, LIMIT If LIMIT is omitted in the function call, then "trailing null fields are stripped from the result", as the Camel book states. I also stumbled on it a few times... -- Andreas -U

RE: split() skipping trailing delimiters

2005-12-05 Thread Joe Discenza
Title: split() skipping trailing delimiters DZ-Jay wrote, on Mon 05-Dec-05 07:58 :     I have a problem using the split() function:  When there are trailing: delimiters, without any content between them, split() skips them.  For From "perldoc -f split":       If LIMIT is spe

Re: split() skipping trailing delimiters

2005-12-05 Thread Chris Wagner
At 07:58 AM 12/5/2005 -0500, DZ-Jay wrote: >Hello: > I have a problem using the split() function: When there are trailing >delimiters, without any content between them, split() skips them. For >example, this: > > my @foo = split(/,/, 'this,is,a,test,,'); my @foo = split(/,/, 'this,

Creating a new directory from a script under windows

2005-12-05 Thread Alejandro Santillan
I am programing a cgi that performs a series of tasks while interacting with the client and that should keep a session alive for a week. In order to do that I decided to create a session directory each time a client sings up. The directory is create while the scrip runs under linux, but under windo

split() skipping trailing delimiters

2005-12-05 Thread DZ-Jay
Hello: I have a problem using the split() function: When there are trailing delimiters, without any content between them, split() skips them. For example, this: my @foo = split(/,/, 'this,is,a,test,,'); yields: this is a test while I'm expecting:

Re: Image compress/resize

2005-12-05 Thread Ing. Branislav Gerzo
David Ressler [DR], on Sunday, December 4, 2005 at 22:56 (-0800) has on mind: what about image magick, or GD library ? -- How do you protect mail on web? I use http://www.2pu.net [Go, Go! Escargot! (Hey, the turtle's catching you!)] ___ Perl-Win

Re: Test string conversion syntax

2005-12-05 Thread DZ-Jay
#!C:\perl\bin\perl open(TXT, "; close(TXT); print "Content-type:text/html\n\n "; print "Text file contents:"; foreach $line(@text) { print "$line "; } print ""; # This will loop through all the line in the file, # substitute commas with pipes on each line, # and print the line to STDOUT. ope

Re: Device-SerialPort.ppd could not be found

2005-12-05 Thread Foo Ji-Haw
Hello Reinhard, With your link I was able to download the module. Thanks! There is a small problem that is stopping me from having fun with the module. In trying to install the module, I get this error: D:\>ppm install Device-SerialPort.ppd Install 'Device-SerialPort' vers