in reply to Re^4: Write to multiple files according to multiple regex
in thread Write to multiple files according to multiple regex
It stops after the first match was found. So i get 1 entry in 1 File, and the rest of the file remains empty.
Are all the output files created, but empty? Are you sure that the one entry is correct? If your input is not broken into blocks correctly, the value of $/ is not correct. The scheme will not work if every end-of-block is not exactly the same. (Remember: $/ is a string) Please post a few (three to ten) blocks of realistic data. Use code tags so we can download it exactly. For security, you can use made-up data, but the format must be exact.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^6: Write to multiple files according to multiple regex
by Foodeywo (Novice) on Jul 21, 2015 at 21:08 UTC | |
by BillKSmith (Monsignor) on Jul 21, 2015 at 23:19 UTC | |
by Foodeywo (Novice) on Jul 22, 2015 at 10:42 UTC | |
by BillKSmith (Monsignor) on Jul 22, 2015 at 18:02 UTC | |
by Foodeywo (Novice) on Jul 23, 2015 at 10:50 UTC |