in reply to Re: using Getopt::Long
in thread using Getopt::Long
$unique somehow should replace $count in the loop right??#!/usr/bin/perl-w use strict; use warnings; use Data::Dumper; use Getopt::Long; my $unique; GetOptions( 'u|unique' => \my $unique, ); while(<>){ chomp; my @s = split /\t/,$_; my $count = $s[6]; if($count > 10){ print $_,"\n"; } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: using Getopt::Long
by Corion (Patriarch) on Sep 27, 2016 at 19:54 UTC | |
|
Re^3: using Getopt::Long
by GrandFather (Saint) on Sep 27, 2016 at 19:55 UTC | |
by v15 (Sexton) on Sep 27, 2016 at 20:04 UTC |