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 } }
In reply to Re^3: Reading a file with 8kB long lines
by BrowserUk
in thread Reading a file with 8kB long lines
by gri6507
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |