Perl: Difference between revisions

From My Mnemonic Rhyme
Jump to navigation Jump to search
>Homaar
No edit summary
 
(No difference)

Latest revision as of 12:49, 24 September 2012

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...