Re: Install Truly Random from CPAN when not listed in the ppm search

2009-04-08 Thread Mathieu Longtin
Got this from Jeff Hobbs @ Activestate a couple of days ago: ppm install MinGW Then untar your package, and compile it as if you were in unix: dmake dmake test dmake install See this blog post for details: http://www.openkomodo.com/blogs/troyt/ppm-install-mingw -- Mathieu Longtin 1-514-803

RE: Build a regexp substitution?

2007-11-02 Thread Mathieu Longtin
As somebody else pointed out: s/$regexp/whatever/ If you need the whatever to be evaluated early as well, you could build a sub my $regexp = qr/.../; my $replace = ...; my $replacer = sub { s/$regexp/$replace/; }; Then in your loop: $_ = whateverstringneedsreplacing; $replacer->(); The result o

Re: compiling modules for activeperl

2007-04-03 Thread Mathieu Longtin
CTED]> To: "'Octavian Rasnita'" <[EMAIL PROTECTED]>; "'Mathieu Longtin'" <[EMAIL PROTECTED]>; Sent: Tuesday, April 03, 2007 9:28 AM Subject: RE: compiling modules for activeperl > On Mon, 02 Apr 2007, Octavian Rasnita wrote: > > Hi Octa

compiling modules for activeperl

2007-04-02 Thread Mathieu Longtin
I'm trying to compile and debug DBD::SQLite using Activeperl on windows. What compiler should I be using to generate compatible DLLs? Thanks -- Mathieu Longtin ___ ActivePerl mailing list ActivePerl@listserv.ActiveState.com To unsubscribe:

compiling modules for activeperl

2007-04-02 Thread Mathieu Longtin
I'm trying to compile and debug DBD::SQLite using Activeperl on windows. What compiler should I be using to generate compatible DLLs? Thanks -- Mathieu Longtin ___ ActivePerl mailing list ActivePerl@listserv.ActiveState.com To unsubscribe:

RE: To find if a function exists

2006-05-31 Thread Mathieu Longtin
The easiest way is to call prototype. It dies if the function doesn't exist. sub function_exists { eval { prototype $_[0] }; return ! $@ } if ( function_exists("whatever") ) { ... } > [EMAIL PROTECTED] wrote: > > : I am writing a perl code which automatically forms a > : function name

Re: ActivePerl Digest, Vol 17, Issue 25

2005-06-22 Thread Mathieu Longtin
I think the "Killed" comes from your shell, not from your perl process. The shell figures out from the exit code that your process was killed, rather than exiting normally, and tells you so. I don't why you call kill on your process group, but in order to daemonize a process, you should just exit(

crypt-ssleay

2005-06-03 Thread Mathieu Longtin
ActiveState doesn't maintain a compilation of Crypt-SSLeay. Add this repository to ppm3's config, and you should find it. http://theoryx5.uwinnipeg.ca/ppms/ __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://ma

Re: Net-Server package for Win32

2005-01-20 Thread Mathieu Longtin
I'd suggest using POE (http://poe.perl.org). We're using it as a complex http server and it's been pretty nice. -Mathieu __ Do you Yahoo!? Take Yahoo! Mail with you! Get it on your mobile phone. http://mobile.yahoo.com/maildemo ___

Re: threads blocking output on windows

2004-11-15 Thread Mathieu Longtin
My guess is it's a function of the language. If I write an equivalent program in python, the behavior on windows is totally ordered, unlike perl. So my guess is there is a problem with perl's thread implementation in windows. I've also noticed that if I start a thread in a perl program that is qui

Re: threads blocking output on windows

2004-11-12 Thread Mathieu Longtin
STDERR is unbuffered by default (that's why I used it), and apparently the threads are executing when they're supposed to, just not printing as they go. --- $Bill Luebkert <[EMAIL PROTECTED]> wrote: > A couple of things to try. 1) Try opening a file for > append in > each thread and write your o

threads blocking output on windows

2004-11-11 Thread Mathieu Longtin
I'm trying to use threads, but it seems threads are blocking the output on windows. I've included a sample program. It starts two threads, and then three threads proceed to print the time elapsed since the beginning of the process. On Windows, the two thread print all their output when they finis

Re: date calculation perl and mysql

2004-08-25 Thread Mathieu Longtin
If you pick it up from mysql, use the UNIX_TIMESTAMP [1] function. It converts a mysql datetime type into seconds since 1970. You can then do your math on it. Otherwise, I suggest looking at the datetime modules [2]. -Mathieu [1] http://dev.mysql.com/doc/mysql/en/Date_and_time_functions.html [2