in reply to retain longest multi words units from hash

Clearly an XY problem as the sample data makes no sense.

How the heck did your sample hash get populated with a larger count of the longest string (automation technology process) than its substrings (automation) and (automation technology)

What are you really asking for here?

  • Comment on Re: retain longest multi words units from hash

Replies are listed 'Best First'.
Re^2: retain longest multi words units from hash
by LanX (Saint) on Jul 29, 2018 at 21:30 UTC
    The example was obviously handmade and not copied, hence the missing comma.

    Cheers Rolf
    (addicted to the Perl Programming Language :)
    Wikisyntax for the Monastery FootballPerl is like chess, only without the dice