in reply to Using Test::More to make sense of documentation
Jeez! You do like to do things the hard way. Get yourself a REPL.
c:\test>p1 [0] Perl> $a = 'abcdeee';; [0] Perl> $a =~ /(..)/ and print $1;; ab [0] Perl> $a =~ /(.)\1/ and print $1;; e [0] Perl> $a =~ /((.)\1)/ and print $2;; [0] Perl> $a =~ /((.)\1)/ and print $1;; [0] Perl> $a =~ /(.)(\1+)/ and print "$1$2";; eee [0] Perl> $a = 'abcdeeef';; [0] Perl> $a =~ /(.)(\1+)/ and print "$1$2";; eee [0] Perl> $a = 'abbb;eeef';; [0] Perl> $a =~ /(.)(\1+)/ and print "$1$2";; bbb
Most of that just requires a cursor up and a couple of characters edits.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Using Test::More to make sense of documentation
by ELISHEVA (Prior) on May 01, 2009 at 14:12 UTC | |
by BrowserUk (Patriarch) on May 01, 2009 at 18:19 UTC |