http://www.perlmonks.org?node_id=582525


in reply to Re: brian's Guide to Solving Any Perl Problem
in thread brian's Guide to Solving Any Perl Problem

that can be shortened:
tr/glrind/wi/d;
=)

Replies are listed 'Best First'.
Re^3: brian's Guide to Solving Any Perl Problem
by perlino (Initiate) on Apr 02, 2015 at 18:27 UTC
    Could someone explain what exactly does it do?
    tr/glrind/wi/d
    Thanks.
      It replaces g with w and l with i, and deletes the characters rind. Therefore,
      girlfriend w--if--e--
      لսႽ† ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ