view _test/temp.pl @ 398:38cb0b80e88e

minor changes
author sergey
date Thu, 08 May 2014 03:53:17 +0400
parents 212cc86e470b
children f23fcb19d3c1
line wrap: on
line source

#!/usr/bin/perl
use strict;

my $p = 'sometype';
my $c = 'My::App::aSomeType';

my $suffix = substr($c, -length($p));
my $prefix = substr($c, 0, -length($p));
print join ("\n",$suffix,$prefix,$p,$c), "\n";

print $prefix && not(substr($prefix,-2) eq '::') ? 'corrupted' : 'class' ;