Slide 58
Slide 58 text
The -F (field separator) Switch
✤ Used with -a, -F will let you
change the split() pattern
✤ WARNING: this is a weird old
switch that doesn’t allow a
space before the pattern starts!
$ echo "1,2, 3" | \
> ruby -naF',\s*' -e 'p $F'
["1", "2", "3\n"]