in reply to Camelizing a maitre d'Hotel

No apostrophe!!!

Replace it with an underscore or drop it: like Maitre_D_Hotel or MaitreDHotel

Background is that Perl still supports (the very old) syntax of apostrophe for doublecolon

That is a use MaitreD'Hotel would be treated like use MaitreD::Hotel

update

compare Acme::Don't

Cheers Rolf
(addicted to the Perl Programming Language and ☆☆☆☆ :)
Je suis Charlie!

Replies are listed 'Best First'.
Re^2: Camelizing a maitre d'Hotel
by v_melnik (Scribe) on Feb 03, 2017 at 15:12 UTC

    Yes, sure, apostrophe wouldn't be appropriate here.

    But how to call it? Maitre::DHotel, Maitre::Dhotel, MaitreD::Hotel, Maitred::Hotel, Maitre::D::Hotel (uh, actually it was kind of sarcasm, I don't need to separate this namespace by 2 parts)

    V.Melnik
      > Maitre::DHotel, Maitre::Dhotel, MaitreD::Hotel, Maitred::Hotel, Maitre::D::Hotel , oh damn it... :)

      There is no Maitre namespace on CPAN yet.

      Unless you plan to release Maitre::Maison or Maitre::Bordel later, I'd stick with MaitreDHotel.

      see also PadWalker

      ===Update

      But if you insist on creating a new namespace drop the D since the :: could be seen as preposition.

      Maitre::Hotel

      Cheers Rolf
      (addicted to the Perl Programming Language and ☆☆☆☆ :)
      Je suis Charlie!

      UPDATE: typo corected! thanks GotToBTru++

        Oh, thanks, it seems that I forgot to add the MaitredHotel and MaitreDHotel options to this list :)

        Of course, I don't need it to be looking like a class and a subclass, so there shouldn't be :: at all.

        So, generally I'm choosing between MaitreDHotel and MaitredHotel, and MaitreDeHotel.

        :)
        V.Melnik