in reply to Re^3: parse file per customized separator / block / metadata
in thread parse file per customized separator / block / metadata

Thanks a lot for this code and sorry for the delayed feedback.

I try to made some tests today and the code covers most needs. The only point which fails is matching block on /^[=]+$/ (note this regexp is not accepted for block matching). my $lookahead_regex = qr/\w+[=:]/; or my $lookahead_regex = qr/[=:][=:][=:]+/; both fail.

I can't manage to match block separator as 'headerX:' (work) AND '=========[=]+' (don't work for now)

advices ? I'll try to continue to work on it in the next days.

Thanks a lot

Replies are listed 'Best First'.
Re^5: parse file per customized separator / block / metadata
by repellent (Priest) on Mar 26, 2010 at 05:34 UTC
    What test case(s) do you have that failed? Do provide it.