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 TouchToneTommy 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. zipper777

    Creating a hash of buffers

    I hate to prove my own ignorance, but I read though that page, but I'm still not sure I understand what it is really doing. The ||= operator looks like it would take the left operand and logical OR it with the right operand and then assign the result back to the left operand. That might be what...
  2. zipper777

    Creating a hash of buffers

    Thanks, that worked perfectly. I did have one question though. What is the ||= operator? I tried to google it, but google won't use that as a valid search parameter, and none of my perl books reference it. Thanks again for the help. -Zipper
  3. zipper777

    Creating a hash of buffers

    Is there a way to create anonymous memory buffers and store them in a hash and then write to them and finally flush the buffers to the hard drive? Basically what I'm doing is creating a basic script that reads in a log file and parses it out in to separate files based on an identifier. There...
  4. zipper777

    Error when trying to set, change, or use $/

    I figured out what the issue is, but I'm not sure I understand why. I had the following code which would not compile if I left any of the lines with $/ in it, but if I added an m to the line: case /[^-].*/ {print "test2";} to change it to: case m/[^-].*/ {print "test2";} then it would...
  5. zipper777

    Error when trying to set, change, or use $/

    I'm getting an error message whenever I try to use the variable $/. The error message that Perl spits out is: syntax error at Z:/Workspace/PN/PN.pl line 64, near "}continue" the code I'm using is basically the following: sub doThings(){ $oldDelim = $/; undef $/; slurp things; $/ =...

Part and Inventory Search

Back
Top