Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
call a subroutine when the beginning of record is seen It may work if the first and last Also, note that your process_record is making use of a global variable, DATA, and three of your four examples will throw an undef warning if the end-of-file is reached before the closing line is seen. I think a state machine type approach would be better, because it is more flexible and can handle the above cases specially, if needed. In reply to Re^2: processing file content as string vs array
by haukex
|
|