my $line; while(<LINES>){ if (m/^--/){ if (defined($line)){ my @data = ( [ $id++, $line ] ); $self->_loaddb(table => 'TABLE', data => \@data); $line = undef; } } else{ chomp; $line .= $_; } }
In reply to Re^3: problem with evaluating first line in a file
by ikegami
in thread problem with evaluating first line in a file
by baxy77bax
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |