in reply to read file twice
use strict; my @fromConnectors; my @toConnectors; my @fromPing; my @toPing; while (<>) { next if /^\+|General manual list|Color Referenc/; my ($misc1, $misc2, $from, $to, $length) = split (/\|/, $_); my ($fromConnector, $ping01) = split /\t/, $from; my ($toConnector, $ping02) = split /\t/, $to; ## ...etc.
|
|---|