|Syntactic Confectionery Delight|
Bareword "SEEK_END" not allowed while "strict subs" in useby thanos1983 (Friar)
|on May 09, 2014 at 00:49 UTC||Need Help??|
thanos1983 has asked for the
wisdom of the Perl Monks concerning the following question:
I am trying to become familiar with flock but it seems that I am getting an unexpected error:
I am searching online, and I can not found a solution to my error. The syntax looks correct but where I am going wrong?
Working sample of my code is provided below:
Well since I am asking a posting this question I hope that you do not mind to ask a few other things about flock that are not so clear to me yet.
I have read the tutorial Perl truncate Function and I am not 100% sure if I am using correctly the truncate() function.
I am confused with the part that (reduces) the size of the file. Maybe this is a very basic question and answer but I can not understand excactly what it does. I visit also truncate and a dew other wesites, but again it is not clear to me.
What I understand is that we are using it to clean the file after from the indicated point fseek() to prepate the file for writing.
Thanks everyone for the time and effort reviewing my question.