Hyphenation in Perl package names [duplicate]

Possible Duplicate:
Line break in lines with colons

I have Perl package name defined as command:

\newcommand{\myperlpackage}{\texttt{XXXXX::YYYYY::ZZZZZ}}

How can I tell LaTeX to hyphen package name after double colon but without any hyphen char eg.

XXXXX::-
YYYYY::ZZZZZ

should be

XXXXX::
YYYYY::ZZZZZ
-

marked as duplicate by Loop Space, Hendrik Vogt, Caramdir, lockstep, Martin Scharrer♦Mar 22 '11 at 22:57

Maybe your question is answered here: Line break in lines with colons. (Possible duplicate?) –  Hendrik Vogt Mar 22 '11 at 13:59
Yes, the main point of both questions is the same, but that question is more general - that's why I probably can't find it. –  jesper Mar 22 '11 at 14:07
@jesper: So do the answers to that question answer yours? –  Loop Space Mar 22 '11 at 14:09