Re: Win32::SerialPort problem

2006-06-01 Thread Foo Ji-Haw
I've used Win32::SerialPort as well. Are you using the ActivePerl distribution? If so, try installing the PPD from http://theoryx5.uwinnipeg.ca/ppms/ David Ressler wrote: I'm trying to use Win32:SerialPort on an XP system. Apparently the standard Windows Perl installation doesn't contain it,

Re: Problems with slaches

2006-05-24 Thread Foo Ji-Haw
I wouldn't go so far as to saay always - usually would be a better choice. You have to be careful in situations like shelling out to a command interpreter for example. Ok. 'Most of the time' then. ___ Perl-Win32-Users mailing list

Re: Problems with slaches

2006-05-23 Thread Foo Ji-Haw
You can always use '/' as the directory delimiter, even in Windows. Perl on Win32 translates / properly. Gerardo Carvallo Velasco wrote: Hello to everyone; I am a beginner in Perl and I have the next problem: I should copy a file from winXP (local) to a Linux server. When I select the file to

Re: breaking out of a for/foreach loop...

2006-04-17 Thread Foo Ji-Haw
last? bruce wrote: ok.. i'm embarassed.. how does one break out of a for/foreach loop?? i thought it was exit/break... pointers? thanks -bruce ___ Perl-Win32-Users mailing list Perl-Win32-Users@listserv.ActiveState.com To unsubscribe:

Perl book sale at Suntec City (Singapore)

2006-03-26 Thread Foo Ji-Haw
Ok, I know this is relevant to a specific few, but it's too good a deal... I've just gotten my hands on 5 Perl books, for a total of only SGD 40 (about USD 25). Includes: mod_perl (O Reilly), Perls of Wisdom, Template::Toolkit, Perl Algorithms, and Mason. For those who are travelling enroute

Re: Perl book sale at Suntec City (Singapore)

2006-03-26 Thread Foo Ji-Haw
it's still ok. I didn't get the Perl books on Bioinformatics and Beginning Perl. But they should still be around. John Serink wrote: Where at Suntec? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Foo Ji-Haw Sent: Monday, March 27, 2006 10:01 AM

How to best count the number of words in a sentence?

2006-03-23 Thread Foo Ji-Haw
Hi all, This is probably a fun trivial question: I'd like to count the number of words in a string. My command: my $count = split(/\s+/,$line); works. But Perl complains about: Use of implicit split to @_ is deprecated It works, but it's deprecated. I can assign split to an array, then do a

Re: Running a script in the system account

2006-03-19 Thread Foo Ji-Haw
You can use the WinXP schtasks utility to run a script in the SYSTEM account. I can't, I'm afraid. I'm running win2k with no plans to change. There is a Perl library that can automate the Windows scheduler, for both 2000 and 2003. ___

Re: Implementing or Emulating TSRs in Win32 Console Apps

2006-03-16 Thread Foo Ji-Haw
I would think you could do a lot of this using PerlTray (part of Activestate PDK). You can bind a hotkey to a callback and handle the sort of thing you want to do. I interpret Veli's requirement as some kind of a keyboard logger. PerlTray can probably register 1 or two (can it be more than

Re: Driving a POS printer from Perl

2006-03-13 Thread Foo Ji-Haw
David Ressler wrote: Thanks for the start. I managed to get Win32::SerialPort to wake up the printer but it's printing gibberish. I'm setting it to the same baud rate, etc., as the (functioning) Generic / Text printer that I set up using the Windows Add Printer. Do you have any code snippits

Re: Driving a POS printer from Perl

2006-03-13 Thread Foo Ji-Haw
') || syserr($^E); $port-databits(8); $port-baudrate(9600); $port-parity(none); $port-stopbits(1); $port-write(Hello, world!\n); - Original Message - From: Foo Ji-Haw [EMAIL PROTECTED] To: David Ressler [EMAIL PROTECTED] Cc: Perl-Win32-Users@listserv.ActiveState.com Sent: Sunday, March 12

Re: Driving a POS printer from Perl

2006-03-12 Thread Foo Ji-Haw
David Ressler wrote: I have a printer for a POS application (an Epson TM-T88II for the record) that I need to drive from a Perl script running under CGI. The printer runs OK as a Generic/Text printer on Serial Port 1 under Windows 2000 (and I assume Windows XP). Do I need to work through a

Re: list dead?

2006-03-12 Thread Foo Ji-Haw
Are you referring to the mailing list archive, or the mailing engine? I think the engine is still running fine. I also noticed that the archiving stopped at 8/3. Chris Wagner wrote: I haven't gotten any list traffic for several days and I don't see the recent messages that I do have on the

Re: Getting .net based web servives using SOAP method

2006-03-08 Thread Foo Ji-Haw
it as a string constant. Good luck, and have fun. Paul wrote: Hi Foo Ji-Haw and others Here the info I have, basically a sample SOAP request POST /wservices/Slib.asmx HTTP/1.1 Host: my.com Content-Type: text/xml; charset=utf-8 Content-Length: length SOAPAction: http://services.abc.net/wservices

Re: Scanning a zip file without expanding it

2006-03-07 Thread Foo Ji-Haw
Craig Cardimon wrote: Is there a way to see the filenames in a *.zip file, open the files, and search their contents without extracting that *.zip file? I'd appreciate a gentle push in the right direction. Try Achive::Zip ___ Perl-Win32-Users

Re: outlook address book

2006-03-07 Thread Foo Ji-Haw
Chris Wagner wrote: Greets, does anyone know of a module or WMI/OLE method that will let u interact with the Outlook global address list? Or an offline copy thereof? I want to be able to search fields for usernames and bring back all the info. Try the MAPI interface. To get you started: my

Re: Perl Command Line Interpreter problem

2006-03-07 Thread Foo Ji-Haw
I'm using Perl 5.8.3.809 on a machine running Windows XP Professional. I'm processing text files of various sizes. The one that is giving me problems is 22.5 MB. One of my co-workers suggested a memory leak. I think I've plugged all the possible memory holes, but this file still sinks the

Re: PPM experience

2006-03-07 Thread Foo Ji-Haw
I understand your confusion. If I were to ppm install Underworld-Revolution I will expect to: use Underworld::Revolution; and not use Revolution; Gary D Trosper wrote: A confusing PPM experience I'm running PPM v3.1 and ActiveState-Perl v5.8.0 MSwin32-x86-multi-thread on a WindowsXP

Re: Processing only certain sections of a file

2006-03-07 Thread Foo Ji-Haw
You mean: while ($wholefile =~ /TEXT(.*?)\/TEXT/sig) { # do your stuff } Craig Cardimon wrote: I have this logic to follow: while(FILE) { if(/START/ .. /END/) { # process line } } I found this logic in an article (http://www.perl.com/pub/a/2004/06/18/variables.html)

Re: Bitmap Display

2006-03-07 Thread Foo Ji-Haw
henry wrote: OK folks, here's my dilemma. I'm not a TK or Win32:GUI user and am not sure if they are the right tools for this. I'm trying to display a bitmap with a JPG/BMP/GIF file to tell people to wait while the script runs. I'd also like to include a little caption below the pic. I guess

Re: old messages?

2006-03-07 Thread Foo Ji-Haw
Yup. I got a load of 'em too. Guess the mailing list server screwed up. ___ Perl-Win32-Users mailing list Perl-Win32-Users@listserv.ActiveState.com To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Re: Need help with variables

2006-03-05 Thread Foo Ji-Haw
If you've defined your $DBH in common.pm, then to access it you have to include the namespace: my $sth = $common::DBH-prepare(..); And in your common.pm, use our instead of my to share the variable: our $DBH = DBI-connect ( DBI:mysql:database=sample; host=127.0.0.1,root, password);

Re: Getting .net based web servives using SOAP method

2006-03-01 Thread Foo Ji-Haw
You don't need to use LWP::UserAgent directly to access SOAP services. SOAP::Lite probably uses it internally, and you only need to focus on the SOAP::Lite methods. You need to explain your difficulties in using SOAP::Lite. My recommendation is that you turn on debugging, so that you can see

Re: Resolving 'Can't Locate .\Makefile.PL' via PerlTray

2006-02-27 Thread Foo Ji-Haw
'. SampleInline.pm basically does nothing. Appreciate any help I can get... Foo Ji-Haw wrote: Hi all, I'm using some inline codes alongside PerlTray. It seems that compiling an executable results in the following error: .\Makefile.PL: error: Can't locate .\Makefile.PL refby: C:\Perl\lib

Re: Threads

2006-02-27 Thread Foo Ji-Haw
Yup. Basically that's it. :) But don't get too ambitious on Perl's ithreads. They are fun, but not as rich as threads from other languages. Carter Thompson wrote: Is this really as easy as it seems or am I over looking something? I have an array with references to tests. I want to loop

Re: Resolving 'Can't Locate .\Makefile.PL' via PerlTray

2006-02-27 Thread Foo Ji-Haw
an idea: is it possible to generate XS code via inline, then simply write a separate module that called it do that inline is not used? Jan Dubois wrote: On Sun, 26 Feb 2006, Foo Ji-Haw wrote: I'm using some inline codes alongside PerlTray. It seems that compiling an executable results

Re: I need your opinion: perl vs php

2006-02-27 Thread Foo Ji-Haw
I don't want to get too far OT but I am in a similar situation as Jaime and was also planning to use MySQL. This is the first time I've seen or heard any comments like this and wanted to poll the audience to see what people think and if Greg's sentiments are the norm. For me, MySQL is perhaps

Re: Resolving 'Can't Locate .\Makefile.PL' via PerlTray

2006-02-27 Thread Foo Ji-Haw
Thanks for coming to my rescue again! Quick qn: I must be missing something, 'cause when I do 'perl Makefile.PL', I get: Can't open perl script Makefile.PL: No such file or directory I'm using MSVC6. Or do I need another compiler? Indeed it is. I do it often. In 'perldoc Inline-FAQ' , see

Re: Resolving 'Can't Locate .\Makefile.PL' via PerlTray

2006-02-27 Thread Foo Ji-Haw
What about using Win32::API to access a separate DLL written in C ? Or does it have to be all Perl ? Thanks for the suggestion. I am so darn rusty on C that no amount of WD-40 will work! So writing a DLL in C from scratch is really asking me to learn Thai...it's near impossible.

Distributing compiled C library generated by inline

2006-02-27 Thread Foo Ji-Haw
Hi all, Here's a sharing session on my successful experience on the a/m, with lots of excellent support from Sisyphus (thanks dude!). Problem statement: Writing a C/C++ extension can be difficult and laborious. Fortunately inline.pm helps to automate much of the work, and keep us developer

Re: I need your opinion: perl vs php

2006-02-26 Thread Foo Ji-Haw
If it's purely a web-based scenario, chances are both platforms will be just as good, and just as scalable. The key issue is whether the developer (you) can do a better job with the selected tool. Perl can do a wonderful job if you use the right framework, and can be just as lousy if the

Resolving 'Can't Locate .\Makefile.PL' via PerlTray

2006-02-26 Thread Foo Ji-Haw
Hi all, I'm using some inline codes alongside PerlTray. It seems that compiling an executable results in the following error: .\Makefile.PL: error: Can't locate .\Makefile.PL refby: C:\Perl\lib\ExtUtils\MakeMaker.pm line 181 I'm using Windows 2000 SP4 + 5.8.7 + PDK 6.0.2

Re: Tough qn: understanding this (C) error while using inline

2006-02-22 Thread Foo Ji-Haw
(the C++ Guy left). Thanks. Will keep you updated. Sisyphus wrote: - Original Message - From: Foo Ji-Haw [EMAIL PROTECTED] To: Sisyphus [EMAIL PROTECTED] Cc: perl-win32-users@listserv.ActiveState.com Sent: Tuesday, February 21, 2006 5:42 PM Subject: Re: Tough qn: understanding this (C

Re: Tough qn: understanding this (C) error while using inline

2006-02-20 Thread Foo Ji-Haw
anywhere with this, I will donate my codes to the community, if it is worth anything. I think Perl and TAPI will be nice. :) Reinhard Pagitsch wrote: Sisyphus wrote: - Original Message - From: Foo Ji-Haw [EMAIL PROTECTED] To: perl-win32-users@listserv.ActiveState.com Sent: Friday

Re: Tough qn: understanding this (C) error while using inline

2006-02-20 Thread Foo Ji-Haw
Hello guys, Loading the library helped. I think I've hit the problem you foresaw. ULONG returns an error during compilation: error C2275: 'ULONG' : illegal use of this type as an expression Is it to do with typemaps? I tried to find some good documentation, but the only example I got was:

Re: Win32::TieRegistry

2006-02-19 Thread Foo Ji-Haw
use Win32::TieRegistry ( Delimiter=/, ArrayValues=0 ); $key = $Registry-{LMachine/System/CurrentControlSet/Enum/} || die $^E\n; This fails. Error message is: The system could not find the environment option that was entered. I used your code and I have the same problems. If I

Tough qn: understanding this (C) error while using inline

2006-02-17 Thread Foo Ji-Haw
Hi all, I'm trying my first hand at writing some C code to extend TAPI onto Perl using inline.pm. I didn't get very far though. Appreciate if anyone can help explain the error (source code is attached). It seems to complain that _lineInitializeExA (defined in tapi.h I think) is not

Re: SV: Problem loading OLE.dll on Windows 98

2006-02-14 Thread Foo Ji-Haw
You'll have a lot of support if you use ActivePerl for the Win32 platforn. There are other repositories which allow you to install modules without any compilation. Thomas Mostrup Nymand wrote: Hi. Thanks for all the help - I have managed to workaround the problem... Your hint regarding

Re: Debugging Perl Service?

2006-02-12 Thread Foo Ji-Haw
Paul Sobey wrote: I have a service written in perl which appears to have a very small memory leak. Because it runs as a service it's hard to run the debugger. Is there a way I can print the memory usage of the different variables in the symbol table from within the script? I'd like to make it

Unable to send wide characters via MIME::Lite

2006-02-12 Thread Foo Ji-Haw
Hi all, I'm trying to send out an email, that occasionally includes wide characters (possibly utf-8; the contents are downloaded from the Web). It looks like MIME::Lite does not like wide characters by default. Is there any way to get around it? Below is my code snippet: my $mail =

Re: Testing for Directories

2006-02-09 Thread Foo Ji-Haw
-d could fail if a file exists with the same name as a dir you're expecting to find. Hmm, I am under the impression that no file can exist with the same name as a subdir in the same path. ___ Perl-Win32-Users mailing list

Re: SV: Problem loading OLE.dll on Windows 98

2006-02-09 Thread Foo Ji-Haw
Thomas Mostrup Nymand wrote: Yes, good point, but line 2 is use Win32::OLE qw(EVENTS); so the code below crashes before there is any mention of InternetExplorer.Application. You are right. Can't help you there. Seldom used cygwin. ___

Re: Problem loading OLE.dll on Windows 98

2006-02-08 Thread Foo Ji-Haw
When I try to use Win32::OLE as in the following script: #!/usr/bin/perl use Win32::OLE qw(EVENTS); my $IE = Win32::OLE-new(InternetExplorer.Application) || die Could not start Internet Explorer.Application\n; I get the following error: Can't load

Re: XML from DB - well formed

2006-02-08 Thread Foo Ji-Haw
Mario Sanchez wrote: hello everyone, can you please point me to a package or script that will first determine the columns of a database table, then output well formed XML? condition: i do not know in advance the columns of the table. example output where field = actual field name table

Re: Testing for Directories

2006-02-08 Thread Foo Ji-Haw
Dirk Bremer wrote: What is the easiest method to detect whether or not a directory exists? I will need to create the directory/subdirectory if it is not already present. The file test -d does not seem to do the trick. What's wrong with -d? It' is not a file test. It's a test if the path

[Fwd: Re: Where to find the ppd for Win32::Shortcut?]

2006-02-06 Thread Foo Ji-Haw
There is documentation for Win32::Shortcut, but it is not distributed in the standard way, i.e. as POD in the .pm file or as a separate file, so you have to look a bit harder. When you search for Win32::Shortcut on search.cpan.org you would have seen that it is part of the libwin32 package. If

Re: [Fwd: Re: Where to find the ppd for Win32::Shortcut?]

2006-02-06 Thread Foo Ji-Haw
For the benefit of all, Win32::Shortcut seems to work still, at least on W2K. Maybe the work has stopped, cause I'm facing the following issues: 1. The required folders are not automatically created when Save() is used. This is minor and can be solved by called File::Path::mkpath() first. 2.

Re: Need some help w/ comparing dates ...

2006-01-31 Thread Foo Ji-Haw
Can anyone get me started on how to check the date/time stamp of a file and compare it to the current day? I imagine this type of simple task is a no-brainer for almost everyone on this list. Poking back through my book a bit now. All pointers to more info much appreciated. stats() will give

Re: PPM error

2006-01-31 Thread Foo Ji-Haw
Paul wrote: Hi I was trying to load the DBI module by using PPM and I am getting an error C:\ppm install DBI Installing package 'DBI'... Error installing package 'DBI': Could not locate a PPD file for package DBI I am behind a firewall. So is there is way to get around that Have you tried:

Changing the substitution charactor in Encoding::encode

2006-01-23 Thread Foo Ji-Haw
Hi all, I'm trying to 'water down' a utf8-encoded to latin-1. Using Encode::encode does the trick, and it replaces character that do not fit into latin-1 with a subtitution character (as per the documentation) Can anyone tell me how I can change this character to something else, like a ' '?

creating sub-threads

2006-01-12 Thread Foo Ji-Haw
Hi all, Does anyone know if it is possible for a thread to create its own child threads? All the threads that are created seem to be tied to the main thread, regardless of the thread they were created from. I've tried: threads-self-create But it's no go either. Complete test code is

Re: Classes as modules?

2006-01-11 Thread Foo Ji-Haw
Well, the two files in question are not huge. They each have one class. What's the difference between require-ing them later, and use-ing them later? Why is it more difficult to require them? I don't think it's more difficult to call a require(), use() helps in the bigger scheme of

Re: Classes as modules?

2006-01-10 Thread Foo Ji-Haw
OK, looking at 'perlnewmod', it has a section called 'What should I make into a module?', which states: You should make a module out of any code that you think is going to be useful to others. That settles my question. The classes I have written for this project are specific to this

Re: Info on reading COM ports

2006-01-08 Thread Foo Ji-Haw
Rajesh Vattem wrote: Hi, I am looking for ways to read a COM port (USB and baud rate 115200). Can some one advise me which is the efficient way to do this. I don't think USB access is available yet. ___ Perl-Win32-Users mailing list

Re: Classes as modules?

2006-01-08 Thread Foo Ji-Haw
Thanks for your reply. But supposing I'm going to keep each class in it's own file, what is the advantage of making that file a module? Doesn't that just let me import the methods of the class into my own namespace, from another file? That would be weird - they're supposed to be methods

Re: What's wrong with this code?

2006-01-03 Thread Foo Ji-Haw
Please ignore this thread. I forgot to do this: use Error qw(:try); Foo Ji-Haw wrote: Hello all, I'm trying to learn exception handling using Error.pm (as recommended by perl.com). Trouble is, I can't seem to get it right. Below (and attached) is my source code in full: use strict; use

Re: Win32::Ole (MAPI) and Win2K scheduler

2006-01-03 Thread Foo Ji-Haw
LeFevre, Ken wrote: I created a program using ActiveState's perl 5.8.4, compiled it using perlapp 5.3.0 and ran it on Windows 2000 Professional SP4 against Outlook 2000 SR-1 (9.0.0.3821). It runs properly both from a command prompt and as a scheduled task. I released it into production on

What's wrong with this code?

2006-01-02 Thread Foo Ji-Haw
Hello all, I'm trying to learn exception handling using Error.pm (as recommended by perl.com). Trouble is, I can't seem to get it right. Below (and attached) is my source code in full: use strict; use warnings; use Error; $|=1; try { print before throw\n; if (1) { print

Re: Why is PerlApp's .exe package smaller than PAR?

2005-12-23 Thread Foo Ji-Haw
If you don't get satisfactory answers here, try the PAR mailing list. (See http://lists.cpan.org .) I think (not sure) that various aspects of PerlApp vs PAR have been covered previously on the PAR list - so you might find something in that list's archive. Thanks Rob. Thanks for spotting

Why is PerlApp's .exe package smaller than PAR?

2005-12-22 Thread Foo Ji-Haw
Hi all, I'm considering using PerlApp to package my application into an easily distributable executable. Comparing PerlApp with PAR, I find that: 1. PerlApp's .exe file is usually smaller than PAR. It can even be less than 1MB, which is almost impossible for PAR. 2. PerlApp packages

Packaging using PAR creates error

2005-12-20 Thread Foo Ji-Haw
Hi all, I use PAR to create the executable Perl files. Most of the time it works. But when using the threads library, it seems to fail. I tried to compile the simplest code that replicates this error: use strict; use warnings; use threads; print Hello world!; The error is: 'The procedure

Re: Packaging using PAR creates error

2005-12-20 Thread Foo Ji-Haw
Hello Rob, Thanks for the verification. I will redo the tests and see if the problem persists. Damn. Sisyphus wrote: - Original Message - From: Foo Ji-Haw [EMAIL PROTECTED] To: perl-win32-users@listserv.ActiveState.com Sent: Tuesday, December 20, 2005 8:09 PM Subject: Packaging

Re: Packaging using PAR creates error

2005-12-20 Thread Foo Ji-Haw
ActiveState (same version number, btw). The package failed again. Odd though. Aren't all repositories the same? Maybe Jan can shed some light on this. Sisyphus wrote: - Original Message - From: Foo Ji-Haw [EMAIL PROTECTED] To: perl-win32-users@listserv.ActiveState.com Sent: Tuesday

Detecting 'dead' threads in Perl

2005-12-20 Thread Foo Ji-Haw
Hi all, Just wondering if anyone is working with ithreads (not the old threading model). If so, how do you discover dead threads? Hope you can share your experiences. Thanks. ___ Perl-Win32-Users mailing list

ActiveState PAR not quite the same from other repositories

2005-12-20 Thread Foo Ji-Haw
Hi all, Just want to share my findings on using 0.90 of the PAR module. I've had some problems packaging the following code: use strict; use warnings; use threads; print Hello world!; The problem seems to come from the threads module. But Rob (Sisyphus) confirmed that the same code works on

Re: Packaging using PAR creates error

2005-12-20 Thread Foo Ji-Haw
In general, they *are* pretty much the same. However, PAR ppm's have been a little fussy of late. I haven't seen that exact error that you reported, but I've seen a similar error when a PAR built using perl 5.8.6 was used on perl 5.8.7 (and/or vice versa). That's why I specified Randy's PAR-587

Re: http mods, working with outlook web interface

2005-12-20 Thread Foo Ji-Haw
Hon Shi wrote: Has anyone used the http mods to interact with the outlook web interface? Just a link to a few examples would be nice. Was it stright forward? (have to read mail with given subject lines and detach files) Thanks __ Do You

Re: how to detect a disconnected socket?

2005-12-19 Thread Foo Ji-Haw
John Serink wrote: Ok, if you're using sockets I strongly recommend you ALWAYS using sysread and syswrite as they baypass standard IO buffereing. Be careful with sysread, it cand and will return partial reads, you MUST be prepared for that. Unless you want your program to block on sysread,

socket sysread() timeout

2005-12-19 Thread Foo Ji-Haw
Hi all, Thanks to John and Bill, I've managed to get my socket disconnect detection working. I'd like to share my check code with all: my $BytesRead = $sock-sysread($buffer,1024); if (!defined($BytesRead)) { print WARNING: Connection lost!\n; exit;

how to detect a disconnected socket?

2005-12-18 Thread Foo Ji-Haw
Hi all, I have the same issue (see subject title) as Trever in the mailing list. Unfortunately reading through the mailing list archive it seems that his problem was not resolved. I'm hoping to have better luck with you guys. :) Basically, I need to know if my IO::Socket::INET socket

Recommendation: Perl Best Practices from O'Reilly

2005-12-11 Thread Foo Ji-Haw
Hi all, I just purchased this book last week, and I will like to recommend this book to all Perl developers striving for Guru-ship. And no, I don't get commision for this (so I won't divulge much either). It's an excellent book that does NOT talk about Perl the language, but rather how to

Re: Device-SerialPort.ppd could not be found

2005-12-05 Thread Foo Ji-Haw
' version 0.22 in ActivePerl 5.8.7.813. Error: Can't call method list_files on an undefined value at C:/Alcatel/ThirdParty/Perl/site/lib/PPM/Archive/Tar.pm line 31. I tried 5.8.6 as well, but both return the same error message. Please advise. Reinhard Pagitsch wrote: Foo Ji

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

Device-SerialPort.ppd could not be found

2005-12-02 Thread Foo Ji-Haw
Hi all, It seems that either the site hosting the a/m ppd is down or the file is missing. Anyone has any ideas what's going on? Whom can I alert? ___ Perl-Win32-Users mailing list Perl-Win32-Users@listserv.ActiveState.com To unsubscribe:

audiere on ActivePerl

2005-11-29 Thread Foo Ji-Haw
Hi all, I just found out about Audiere, and from the specs it looks really cool. Unfortunately, the documentation suggests that one compiles the source code to get it working on Windows. Has anyone any success on this matter (ie getting Audiere to work on Windows/ ActivePerl)? If so, please

Re: Regular Expression

2005-11-29 Thread Foo Ji-Haw
$String = 'Integration Test Lead: \ul\b0 \tab\tab\tab Kimberly Kim\tab\tab\tab\tab\tab\tab \par'; How would I extract Kimberly Kim from the string using regular expression. Is there a way using expression to skip \[characters] ( like \tab ) and search for only real words, maybe between

Re: XP shutting down perl

2005-11-29 Thread Foo Ji-Haw
When I use mysql+perl, the only time I get a similar error, is when I have threads that connect to the server. If I am not mistaken, the mysql dbd driver is not thread-safe. Hope this helps. Ed Bachmann wrote: Windows XP is intermittantly shutting down perl with this message, in a big,

Re: audiere on ActivePerl

2005-11-29 Thread Foo Ji-Haw
My impression is that you could also download the Win32 binary: http://prdownloads.sourceforge.net/audiere/audiere-1.9.3-win32.zip?download The binary comes only with python and java samples, but no perlalas! ___ Perl-Win32-Users mailing list

Re: Can't start ppm command

2005-11-18 Thread Foo Ji-Haw
If you didn't install ActivePerl, chances are you will have problems running ppm, although running perl will be fine. I don't know what is the cause, but I think it is either: 1. missing registry settings 2. different directory location [EMAIL PROTECTED] wrote: Hello, I hear some people around

Re: Play MP3 from Perl

2005-11-17 Thread Foo Ji-Haw
Hello Glenn, Maybe the better approach is to create the Windows Media Player ActiveX object, and play MP3s from it, since you're staying exclusively on the Windows platform. If it can be done on VB, I am sure it is possible on ActivePerl as well. Glenn Linderman wrote: Hi, I'm looking

Re: Digest::SHA1 weirdness

2005-11-16 Thread Foo Ji-Haw
I've not had much problems with the digest, even on mp2. This is a wild shot, but have you tried the OO version of the digest: $sha1 = Digest::SHA1-new; $sha1-add($data); $digest = $sha1-hexdigest; Wiswell, Virginia wrote: Has anyone else ever experienced inconsistencies in digest creation

Reading from a buffer in a IO::Socket::INET

2005-10-31 Thread Foo Ji-Haw
Hello all, I am trying to read from a socket connection, a text string if any. Problem is, the text string does not end with a CR. Socket connection is ok. Below is my code snippet: ... my $buffer; $sock-blocking(0); while (my $count = $sock-read($buffer,512)) { print $buffer; } The

Re: Regular expression

2005-09-15 Thread Foo Ji-Haw
Don't know if this works, but have you tried: $string = 1\\.2\\.3; - Original Message - From: Wong, Danny H. [EMAIL PROTECTED] To: Sisyphus [EMAIL PROTECTED]; Jan Dubois [EMAIL PROTECTED]; perl-win32-users perl-win32-users@listserv.ActiveState.com Sent: Thursday, September 15, 2005 2:28

Anyone has Perl codes to access Outlook Express Address Book?

2005-09-12 Thread Foo Ji-Haw
Hi all, I need to access the Address Book in Outlook Express (and Outlook too, if possible), possibly via MAPI. Is there any kind soul who can share his/ her success with me? Code snippets should be good enough! Thanks. ___ Perl-Win32-Users

Re: [threads] Forced termination

2005-08-25 Thread Foo Ji-Haw
I guess Perl's threading is not quite complete as of 5.8.x. But with forking it is possible to kill a child process? - Original Message - From: $Bill Luebkert [EMAIL PROTECTED] To: ajpeck [EMAIL PROTECTED] Cc: Perl Win32 mail list perl-win32-users@listserv.ActiveState.com Sent:

Re: DBD-mysql module

2005-07-27 Thread Foo Ji-Haw
Hello Scott, Is 3.0002 the thread-safe version of the dbd? Scott Campbell wrote: ActiveState, is it possible for you to update your DBD-mysql module to the latest (available via PPM)? Currently you have 2.9008, while 3.0002 is the latest. If anyone desires the latest, Randy Kobes has it at

activeperl + mysql + threads = crash

2005-07-25 Thread Foo Ji-Haw
Hi all, I thought I can hit a nice milestone today, but it seems that I have hit a strange obstacle instead. In my tests, the following code will run, but when it terminates an error message will be shown. use strict; use warnings; use DBI; use threads; doIt(); doIt(); sub doIt { my $dbh

Re: activeperl + mysql + threads = crash

2005-07-25 Thread Foo Ji-Haw
with Perl v5.8.7 and had the same prroblem as you, on the 2nd doIt Perl crashes. I also found out that Perl crashes in the DBI.pm sub disconnect_all. Removing use threads; it works. regards, Reinhard Foo Ji-Haw wrote: Hello Reinhard, I am using 5.8.6 of ActivePerl. Thanks for checking out