- or download this
$ perl -e 'chomp($orig = <STDIN>); ($tmp = $orig) =~ s/[^A-Z]//g; prin
+t "Copy: $tmp\nOriginal: $orig\n";'
WeDfT
Copy: WDT
Original: WeDfT
- or download this
use strict;
use warnings;
...
else {
print "'$input' does not match.\n";
}
- or download this
$ perl test.pl
WaFFe
...
$ [bwisti@w3d145 tmp]$ perl test.pl
AeBwaffleCfrenchtoastD
'AeBwaffleCfrenchtoastD' matches!