in reply to RE: Parsing and \G and /g and Stupid User Tricks: Final Solution, v2
in thread Parsing and \G and /g and Stupid User Tricks
local( $/ )= undef; @records= split /(?=($RID))/, <FIN>;
Note that you need to set $/ if you want to read in the entire file at once.
So a record can never have, for example, "MEH" in the middle of it? What kind of data is in these records that you can guarantee that these record IDs never appear in the middle of a record?
- tye (but my friends call me "Tye")
|
|---|