You guys, I'm not sure '-a' is quite equivalent to the awk fields. I'm no good at awk, but I believe it splits on m/\s+/ rather than \s. perlrun says '-a' is this:
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.
|