- or download this
my $section = 0; my @sectone; my @secttwo;
while(<TEXTFILE>) {
...
print "No section defined for: $_\n";
}
}
- or download this
my $section = 0; my @sectone; my @secttwo;
while(<TEXTFILE>) {
...
print "No section defined for: $_\n";
}
}
- or download this
my $section = 0;
my %sections = (1 =>[],2=>[]);
...
print "No section defined for: $_\n";
}
}
- or download this
my $section = 0;
my %sections = (1 =>[],2=>[]);
...
warn "No section defined for: $_\n";
# cause warn gives you $. in <TEXTFILE>
}
- or download this
my $section = 0; my @sectone; my @secttwo;
while(<TEXTFILE>) {
...
warn "No section defined for: $_\n";
}
}
- or download this
my $section = 0;
my %sections = (1 =>[],2=>[]);
...
and next()}}
,$_;
}
- or download this
my $section = 0;
my %sections = (1 =>[],2=>[]);
...
warn "No section defined for: $_\n" unless $sections;
push @{$sections{$sections}},$_
}
- or download this
my $section = 0;
my %sections = (1 =>[],2=>[]);
...
and next() )}}
,$_;
}