#!/usr/local/bin/perl -w use strict; my (@seq, $x); open (F, "< xyz") || die "Cannot open file\n"; while (<F>) { chomp($_); if (length($_) > 0) { $seq[$x] .= $_; } else { $x++; } }
In reply to Re: Arrays and Files
by Mago
in thread Arrays and Files
by FarTech
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |