in reply to Fetching unique info
So the output would look like the following:#!/usr/bin/perl -w use strict; open IN, "filename" or die "$!"; while (<IN>) { chomp; my ($first, $info) = (split />/); my $number = (split /'/, $first)[9]; print "$number => $info\n"; } close IN or warn "$!";
113 => San Francisco (Manager) 680 => Los Angeles (Worker) 456 => San Jose (People)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Fetching unique info
by Anonymous Monk on Jun 05, 2003 at 17:34 UTC | |
by cbro (Pilgrim) on Jun 05, 2003 at 18:19 UTC | |
by Anonymous Monk on Jun 05, 2003 at 18:29 UTC | |
by cbro (Pilgrim) on Jun 05, 2003 at 18:34 UTC |