in reply to Re: Ways of quoting
in thread Ways of quoting

Yeah, clearly just using it as a sneaky way of quoting doesn't work.

Having said this, one thing I've done in the past is something like this:

use Const::Fast; use A::Really::Long::Class::Name::To::Type; const my $CLASS => 'A::Really::Long::Class::Name::To::Type'; $CLASS->do_something; $CLASS->do_something_else; $CLASS->yet_another_thing; # # and a bunch more of these #

In that circumstance, seems to me that

const my $CLASS => A::Really::Long::Class::Name::To::Type::;

might actually be preferable, in that it gives you that check against the package name.

All I can say is I've been using perl since the '90s and I still have so much I don't know.