Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. Aneusomy

    clearing memory used by hash

    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...
  2. Aneusomy

    Finding directory of executing script

    Much appreciated! Regards, Ben
  3. Aneusomy

    Finding directory of executing script

    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...
  4. Aneusomy

    Finding directory of executing script

    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...
  5. Aneusomy

    getting 'index' to find specific match from regex

    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 =~...
  6. Aneusomy

    Zoom Lens Bug?

    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
  7. Aneusomy

    clearing memory used by hash

    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...
  8. Aneusomy

    Photoshop 5.5 vs. 6.0 - Is it worth it???

    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...
  9. Aneusomy

    Mason 1.0 released - embed Perl into HTML

    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...
  10. Aneusomy

    Is it possible to code perl script inside HTML?

    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
  11. Aneusomy

    combining 2 lines into one

    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 . &quot;\n&quot;; $combined_str = &quot;&quot;; } } and $ct will give you the...
  12. Aneusomy

    perl compiler for unix/win32

    Hi goboating, no worries. i'll try to be more specific next time. ben
  13. Aneusomy

    perl compiler for unix/win32

    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
  14. Aneusomy

    perl compiler for unix/win32

    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...
  15. Aneusomy

    perl compiler for unix/win32

    Hi, I've looked around, but does anyone know of any good, free perl compiler for either *nix or win32? TIA, Ben
  16. Aneusomy

    passing a hash to a sub by reference.. AARRRGGGHHH!

    Hi Tom, Oops, was a late night when I wrote this. Making some typo corrections (in blue) to the &quot;main program&quot; part: my (@somearray, %somehash); my ($reftothearray, $reftothehash) = dosomething(&quot;A&quot;, &quot;B&quot;, \@somearray, \%somehash); my (@passedarray) =...
  17. Aneusomy

    passing a hash to a sub by reference.. AARRRGGGHHH!

    Hi Mike, I've been passing hashes and arrays back and forth into and out of subs. Looks like tsdragon is doing it similar to what I'd suggest below.. I don't know what the &amp;_64;_; is though... sub dosomething { #$getvar1 and $getvar2 are just examples of regular #variables being...
  18. Aneusomy

    getting 'index' to find specific match from regex

    Hi guys, thanks for the suggestions. the reason i don't want to put in the \b boundaries is because i've left it so that the user can enter wildcard &quot;*&quot;'s (and i have to strip these out beforehand and replace with \b if they are before or after the keyword)... nevertheless i'm sure...
  19. Aneusomy

    getting 'index' to find specific match from regex

    hi, thanks for your response. however, still i need something that reports the position of the regex match and not a new match position made by the index function. do you know of anything that does this? TIA, ben
  20. Aneusomy

    getting 'index' to find specific match from regex

    hi, :-) can anyone help me with the following problem. i've designed a search engine, and would like to finish implementing highlighting of the search match results in another colour. with a regex: eg: $teststr = &quot;transferase protein is a ras molecule&quot;; $thestr = &quot;\bras\b&quot...

Part and Inventory Search

Back
Top