Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.

comment on

( [id://3333] : superdoc . print w/replies, xml ) Need Help??
Hi, Thanks for the reply. When I run this script initializing
$from = 0; $to = 1000; Only 500 entries are got in the file and the it prints from <code> [ 3] Processesing file200 [ 3] Processesing file201 [ 3] Processesing file202 .... [ 3] Processesing file220 [ 3] Processesing file299 [ 5] Processesing file400 [ 5] Processesing file401 [ 5] Processesing file498 [ 5] Processesing file499 [ 1] Processesing file 0 [ 1] Processesing file 1 [ 1] Processesing file 2 .. [ 1] Processesing file 99 [ 2] Processesing file100 [ 2] Processesing file101 [ 2] Processesing file102 [ 2] Processesing file103 [ 2] Processesing file104 [ 2] Processesing file105 .. [ 2] Processesing file198 [ 2] Processesing file199 [ 4] Processesing file300 [ 4] Processesing file301 ...... [ 4] Processesing file397 [ 4] Processesing file398 [ 4] Processesing file399
Only 500 entries are there in the file and the processing file is not in sequence order. Can you please help me how to do it. How to use file locks on the code above which I have mentioned in the previous thread, i.e forking a process and all the files should write to a single log file.

In reply to Re^2: Multi threading by sandy1028
in thread Multi threading by sandy1028

Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":

  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.