in reply to Locate Unique column from a given set of column
Who sold you this junk? The wheels are square and they don't even turn!
Ummm, I mean, you use strict; which is excellent, but there are eight variables used that are not declared. Even if the obvious declarations are made there are three variables that are used without being initialized!
It may be that the following code (completely unrelated to your sample) may illustrate the technique you are asking about:
#!/usr/bin/perl -w use strict; my @lines = split "\n", <<"LINES"; 12345678901234 123456789012345 1234567890123456 123456789012xxx LINES chomp @lines; my @lines15 = grep {15 == length} @lines; print join "\n", @lines15;
Prints:
123456789012345 123456789012xxx
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Locate Unique values
by Abhisek (Novice) on Feb 13, 2008 at 05:48 UTC | |
by GrandFather (Saint) on Feb 13, 2008 at 07:48 UTC |