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
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
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
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:
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:
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
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(
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
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
___
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
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
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
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
13 matches
Mail list logo