in reply to Re^2: Reading a file with 8kB long lines
in thread Reading a file with 8kB long lines

Something like this would do it:

my $line = ''; while( <$fh> ) { next if m[^//]; $line .= $_; if( $line =~ m[;\Z]m ) { ## process line or push ta a array } }

Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
"Too many [] have been sedated by an oppressive environment of political correctness and risk aversion."