Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
use for() instead of given()
  • Loading branch information
Chris Fields committed Apr 13, 2012
1 parent c063f1f commit 37b298a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/Bio/FeatureIO/gff.pm
Expand Up @@ -4,7 +4,6 @@ use strict;
use warnings;
use 5.010;
use base qw(Bio::FeatureIO);
use URI::Escape;
use Bio::FeatureIO::Handler::GenericFeatureHandler;

use Bio::GFF3::LowLevel qw(
Expand Down Expand Up @@ -60,7 +59,7 @@ sub next_dataset {
GFFLINE:
while (my $line = $self->_readline) {
$len += CORE::length($line);
given ($line) {
for ($line) {
when (/^\s*$/) { next GFFLINE } # blank lines
when (/^(\#{1,2})\s*(\S+)\s*([^\n]+)?$/) { # comments and directives
if (length($1) == 1) {
Expand Down

0 comments on commit 37b298a

Please sign in to comment.