On Sep 16, 3:15 pm, dbl... / wobblini.net wrote:
>
> > But the original project examples at
>
> >http://www.rubyhacker.com/code/scanf/
>
> > might get you going...
>
> That version is obsolete; it's best to use the one that ships with
> Ruby. You have to require it, though -- it's standard library rather
> than core.
>
>    require 'scanf'
>    p "abc 123".scanf("%s%d")  => ["abc", 123]
>
> There's considerable documentation in the source file, but it's not in
> rdoc form. It's on my to-do list....

Thanks -- this resolves my issue.  Seems like the docs on scanf are
simply outdated. :-)


Alex