in reply to Re: filter a file using an exclusion list
in thread filter a file using an exclusion list
I get this message for each line of $large:#!/usr/bin/perl -w use strict; open(my $excludes,"<",$ARGV[0]) or die("could not open $ARGV[0]!"); open(my $large,"<",$ARGV[1]) or die("could not open the $ARGV[1]!"); my @excludes = <$excludes>; chomp(@excludes); my %stopwords = map { $_ => } <@excludes>; while( <$large> ){ my ($test,@temp) = split(/\s+/,$_); print "testing: $test\n"; print $stopwords{$test} , "\n"; #print $test, "\n"; } close($excludes); close($large);
Is it something Im missing with my input files?testing: 9999853 Use of uninitialized value in print at ./filter_exclusions.pl line 13, + <$large> line 1.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: filter a file using an exclusion list
by Cristoforo (Curate) on Feb 13, 2011 at 22:16 UTC | |
by coldy (Scribe) on Feb 13, 2011 at 23:29 UTC | |
by coldy (Scribe) on Feb 13, 2011 at 23:38 UTC |