- or download this
if ( @chunks > 1 && $chunks[-2] =~ s/$comment$// ) {
...
}
- or download this
if ( @chunks > 1 && $chunks[-2] =~ s/$comment$// ) {
pop @chunks;
}
- or download this
if ( @chunks > 1 ) {
$chunks[-2] =~ s/$comment$//; # XXX remove comment indicator
pop @chunks; # XXX remove the comment
}
- or download this
my $split = Data::Record->new(
{
split => $comment,
...
}
);
my @chunks = $split->records($line_of_sql);
- or download this
if ( @chunks > 1 && $chunks[-2] =~ s/$comment$// ) {
pop @chunks;
}
- or download this
if ( @chunks > 1 ) {
$chunks[-2] =~ s/$comment$//; # XXX remove comment indicator
pop @chunks; # XXX remove the comment
}