On 2011-07-14 08:17, John W. Krahn wrote:

You have to quote it:

$ echo "one two three four" | perl -F'\t' -lane'print "$_: $F[$_]" for 0
.. $#F'
0: one
1: two
2: three
3: four

Or double it:

echo -e "a\tb\tc\td" |perl -F\\t -lane'print"$_: $F[$_]"for 0..$#F'

0: a
1: b
2: c
3: d

--
Ruud

--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to