Mercurial > pub > Impl
view _test/temp.pl @ 400:ef37ec102dab
redirection support while fetching child resources
author | cin |
---|---|
date | Wed, 14 May 2014 17:27:32 +0400 |
parents | 38cb0b80e88e |
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' ;