Hi stillflame,
Well, found the answer to the question and thought I'd let others know too:
just as you speculated, the memory that gets 'eaten' by Perl remains within Perl (i.e. the O/S cannot reclaim it) and is free for reuse within Perl. This memory, however, is not released to the O/S until...
Hi Mike,
Thanks for the response, but I think you read my post in a hurry. cwd only gives where you're running from, not the directory where the script actually resides.
Maybe what I'll try is parsing the path and finding if the script is located in any of the directories in the path...
Hi all,
Does anyone know how to find the directory path of the script that's being run? This is assuming that the script is being called somewhere other than where it is located, i.e. the script is in the path. Something similar to 'whereis' in *nix (I'd prefer not to make any system calls-- I...
Hi everyone,
in case anyone is interested, I've found another (more direct) solution to this problem. To report the exact position where a regex matches, the pos function does this.
$teststr = "transferase protein is a ras molecule";
$thestr = "\bras\b";
if ($teststr =~...
Hi, I can't reproduce your results. Do you have video alpha on (under transparency and gamut, preferences)?
What type of video card do you have? I'm running an Nvidia TNT2 at work, and a Rage Fury at home, both no problems.
Ben
Hi all,
Does anyone know how to empty a hash and reclaim the memory, without exiting the script?
I've got a script that loads a 390meg gene list into memory, then when I'm done with it I want to empty the hash so that I can reclaim the memory and move onto the next memory-intensive op. I've...
Hi,
I too think that you should hold off until some update to 6.0 comes out. My biggest beef is that 5.5 felt 'tuned' and ran quite quickly on my PIII 800 (W2K), but 6.0 doesn't have that zippy feel. For instance, the text tool seems very slow to respond. I also agree that some of the new...
Hi all,
Some of you are following this already, so the rest of you should check out:
http://www.masonhq.com
as the 1.0 release is now out.
Quoted from the site:
"What Is Mason?
Mason is a powerful Perl-based web site development and delivery engine. With Mason you can embed Perl code in...
You may want to check out Mason, the first release is now available.
http://www.masonhq.com
looks very nice, but need to incorporate it into the server.
Ben
Hi all,
You can simplify hmerrill's approach a little:
$ct = 0;
while(<FILE>) {
$ct++;
chomp;
$combined_str .= $_;
if ($ct % 2) { ### if you're on an even row
print OUT_FILE $combined_str . "\n";
$combined_str = "";
}
}
and $ct will give you the...
Thanks all for the help;
I didn't think I could find anything free, so this confirms it. If anyone does come along something good, please let me (everyone?) know! I'll do the same.
Thanks
Ben
hi,
actually, should've been more specific with my question. i'm aware of the compilers from activestate and cpan - duh. i'm looking for something free to compile to executable exe. activestate sells the perlapp as part of their 'perl dev kit'. i guess i could opt for an educational license...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.