bier has asked for the wisdom of the Perl Monks concerning the following question:
When I run: perl -e 'while(<>) {print (split)[1]}' filename I get:< 0170 < 0206 < 0216 < 0223
Which is not what I want. I can use a simple awk statement easily get just the second column, but I would prefer to use perl.< 0170 < 0206 < 0216 < 0223
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Yet Another Split Question
by blokhead (Monsignor) on Aug 11, 2004 at 23:22 UTC | |
by TimToady (Parson) on Aug 12, 2004 at 00:26 UTC | |
by ysth (Canon) on Aug 12, 2004 at 04:05 UTC | |
by TimToady (Parson) on Aug 12, 2004 at 08:15 UTC | |
by ysth (Canon) on Aug 12, 2004 at 11:16 UTC | |
|
Re: Yet Another Split Question
by graff (Chancellor) on Aug 12, 2004 at 01:06 UTC |