in reply to Re^2: using fields in perl
in thread using fields in perl
while (<>) { @F = split(' '); print pop(@F), "\n"; }
But I think you'd have to @F = grep {$_} @F or change the split or something.
no?
(Also, I think elan should work. I mean, I know it doesn't, but isn't there some posix-y arg processing style where if 'a' and 'b' take arguments "-dacbe aarg barg" still works? Perhaps I imagined that.)
UPDATE: oh, jstrom, I did *not* know that... I assumed split splooged any argument into a regex.
-Paul
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: using fields in perl
by JStrom (Pilgrim) on Dec 25, 2007 at 13:57 UTC | |
by demerphq (Chancellor) on Dec 25, 2007 at 20:44 UTC | |
|
Re^4: using fields in perl
by ysth (Canon) on Dec 25, 2007 at 18:03 UTC |