Perl

From My Mnemonic Rhyme
Jump to navigation Jump to search

Tutorials

Duplikate suchen

http://stackoverflow.com/questions/2582940/how-do-i-remove-duplicate-characters-and-keep-the-unique-one-only-in-perl

homaar@mail:~$ echo tttttttttttttttttest | perl -pe 's/(..)(?=.*?\1)//g'
tttest

Command-Switches

#!/usr/bin/perl -w
#prints warnings about dubious constructs...