On Tue, Apr 05, 2005 at 09:21:41AM -0700, Larry Wall wrote:
> Plus you really don't want to clutter the Str type with every little
> thing you might want to do with a string.  "foo".open() will probably
> work, but only because it doesn't find a Str.open and fails over to
> MMD dispatch, which ends up finding a filehandle constructor.

"foo".open is just weird. Here I would definitely want at least a
warning, if just for my sanity.

>     words(@array)

On the other hand, @array.words seems just as natural as $string.words
to me. I'm not sure how to reconcile this.

Does [EMAIL PROTECTED] DWIM, by the way? I'm not sure about the precedence.

> Maybe there's a pragma that lets you control how much coercion
> happens.

    use coercion :oppressively; # They're adverbs, after all!

> Larry


Attachment: signature.asc
Description: Digital signature

Reply via email to