in reply to Re: default perl execution parallel or serial
in thread default perl execution parallel or serial

Thanks for your notes. Let me give you one simple example. I have many directories such as below; 1200 1201 1202 1203 1204 1205 .... .... and one common file(common.txt) present in each directory. My script will do some add/edit/delete operation in each common.txt and make one new file called common_temp.txt under /tmp/ location. and then copy same file to common_temp.DATE.txt to ONE location. I am not using any for loop..each directory operation is getting done based one config input file. My worry is that while doing this operation, data from one from to another should not be mixed. i mean last execution is still running and new has been executed.... so wanted to know how perl executes.. Statement by statement or it just fires the statement n move to other statement
  • Comment on Re^2: default perl execution parallel or serial

Replies are listed 'Best First'.
Re^3: default perl execution parallel or serial
by Marshall (Canon) on Jan 02, 2012 at 10:42 UTC
    Sounds like there may be a problem with this: My script will do some add/edit/delete operation in each common.txt and make one new file called common_temp.txt under /tmp/ location. Maybe there is another program updating this common.txt file at the same time that you are reading it?

    If you have one single Perl program running, it will just, like any other program language do one thing after another. Your terminology confuses me. What do you mean by: by the statement: or it just fires the statement n move to other statement?

    I don't understand this part about "fires the statement n". Please use different words to describe this.