Mercurial > pub > Impl
annotate _test/temp.pl @ 401:16ff604298c7
minor fixes
author | cin |
---|---|
date | Thu, 15 May 2014 18:24:28 +0400 |
parents | 38cb0b80e88e |
children | f23fcb19d3c1 |
rev | line source |
---|---|
210 | 1 #!/usr/bin/perl |
2 use strict; | |
395 | 3 |
398 | 4 my $p = 'sometype'; |
5 my $c = 'My::App::aSomeType'; | |
210 | 6 |
398 | 7 my $suffix = substr($c, -length($p)); |
8 my $prefix = substr($c, 0, -length($p)); | |
9 print join ("\n",$suffix,$prefix,$p,$c), "\n"; | |
395 | 10 |
398 | 11 print $prefix && not(substr($prefix,-2) eq '::') ? 'corrupted' : 'class' ; |