- or download this
while(<FILE>) {
push @stock,$_;
...
# Would be better as...
@stock = <FILE>;
- or download this
while(@stock) {
foreach $line (@stock) {
- or download this
while (my $line = <FILE>) {
# do stuff
}
- or download this
open $item[2], ">>some_filename";
put_items_into_it;
close $item[2]
- or download this
my $cat = undef;
while (my $line = <FILE>) {
...
print OUTFILE ## Whatever ###;
}
close OUTFILE;
- or download this
delete_that_line_from_stock;