On Jul 13, 11:17 pm, jwkr...@shaw.ca ("John W. Krahn") wrote:
> C.DeRykus wrote:
>
>...
>
> That won't work as the shell will interpolate away the backslash:

Not necessarily...   it works on Win32's idea of a
"shell"  for instance :)

But it doesn't hurt even there and is a good habit.

>
> $ echo "one  two     three   four" | perl -F\t -lane'print "$_: $F[$_]"
> for 0 .. $#F'
> 0: one
> 1: wo
> 2: hree four
>
> You have to quote it:
>

Yes, particularly on Unix.

--
Charles DeRykus


--
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