Michael Ellery wrote:

> Does anyone know if/how module names with dashes are supported in perl?

Not supported at all. Identifier can only be a string beginning with a letter 
or underscore, and containing letters, 
underscores, and digits. Package name is actually a namespace, which consists 
of identifiers, divided by double colon or 
apostrophe (old style, not recommended).

I'm not aware of any other programming language that supports hyphen as a part 
of identifier, so it's strange that you 
tried this with Perl.

> I just happened to name one of my packages with a dash in it and I
> wasn't able to load it ("use my-package;" fails with a strange error).

You are not even able to make this package pass syntax check, "package 
anything-like-that;" construction should fail.

-- 
Serguei Trouchelle
_______________________________________________
ActivePerl mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to