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...
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
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...
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...
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;
$/ =...
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.