ruby %w equivalent

MonkeeSage MonkeeSage at gmail.com
Sat Sep 30 05:05:34 EDT 2006


Nick Craig-Wood wrote:
> These are snatched straight from perl.  In perl they are spelt
> slightly differently

Yup, they are; perl had _some_ good ideas; no doubt. ;)

> In perl (and maybe in ruby I don't know) the { } can be replaced with
> any two identical chars, or the matching pair if bracketty, so q/blah/
> or q(blah).

Yes; same thing in ruby.

Regards,
Jordan




More information about the Python-list mailing list