[Melbourne-pm] Perl garbage collection behaviour

Sisyphus sisyphus1 at optusnet.com.au
Thu Aug 25 02:08:29 PDT 2005


----- Original Message ----- 
From: "Harley Mackenzie"


> No - it is a console application (really should run as a service but I
need to sort this out first), so I am just bringing up the DOS window to the
foreground and then minimising.
>

Maybe you'll learn something (or maybe not) by running it as a console-less
app using wperl.exe (which should already be in your perl/bin folder). Of
course then you don't get to see any output, so you'd need to redirect
stdout and stderr to a file - something like:

wperl script.pl >out.txt 2>&1

Does that still accumulate garbage ?

Or perhaps redirection alone would suffice:

perl script.pl >out.txt 2>&1

Cheers,
Rob



More information about the Melbourne-pm mailing list