annotate _test/temp.pl @ 418:3f38dabaf5cc ref20150831

sync
author cin
date Mon, 28 Dec 2015 15:11:35 +0300
parents 3ed0c58e9da3
children bbc4739c4d48
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
210
6adaeb86945d added IMPL::Web::AutoLocator
sergey
parents: 209
diff changeset
1 #!/usr/bin/perl
6adaeb86945d added IMPL::Web::AutoLocator
sergey
parents: 209
diff changeset
2 use strict;
412
30e8c6a74937 working on di container (role based registrations)
cin
parents: 411
diff changeset
3 use Carp;
30e8c6a74937 working on di container (role based registrations)
cin
parents: 411
diff changeset
4 use Time::HiRes qw(gettimeofday tv_interval);
415
3d24b10dd0d5 working on IMPL::Config::Container
cin
parents: 414
diff changeset
5 use Scalar::Util qw(blessed refaddr);
418
cin
parents: 417
diff changeset
6 use YAML::XS qw(Dump Load);
407
c6e90e02dd17 renamed Lib->lib
cin
parents: 406
diff changeset
7
418
cin
parents: 417
diff changeset
8
417
3ed0c58e9da3 working on di container, tests
cin
parents: 415
diff changeset
9
3ed0c58e9da3 working on di container, tests
cin
parents: 415
diff changeset
10 use IMPL::require {
3ed0c58e9da3 working on di container, tests
cin
parents: 415
diff changeset
11 Container => 'IMPL::Config::Container',
3ed0c58e9da3 working on di container, tests
cin
parents: 415
diff changeset
12 Service => 'IMPL::Config::ServiceDescriptor',
3ed0c58e9da3 working on di container, tests
cin
parents: 415
diff changeset
13 Reference => 'IMPL::Config::ReferenceDescriptor',
3ed0c58e9da3 working on di container, tests
cin
parents: 415
diff changeset
14 Value => 'IMPL::Config::ValueDescriptor'
3ed0c58e9da3 working on di container, tests
cin
parents: 415
diff changeset
15 };
3ed0c58e9da3 working on di container, tests
cin
parents: 415
diff changeset
16
418
cin
parents: 417
diff changeset
17 my $data;
cin
parents: 417
diff changeset
18 {
cin
parents: 417
diff changeset
19 open my $h, "sample.yaml" or die;
cin
parents: 417
diff changeset
20 binmode $h;
cin
parents: 417
diff changeset
21 local $/;
cin
parents: 417
diff changeset
22 $data = <$h>;
cin
parents: 417
diff changeset
23 }
417
3ed0c58e9da3 working on di container, tests
cin
parents: 415
diff changeset
24
418
cin
parents: 417
diff changeset
25 my $t = [gettimeofday];
417
3ed0c58e9da3 working on di container, tests
cin
parents: 415
diff changeset
26
418
cin
parents: 417
diff changeset
27 print Dump Load($data);
417
3ed0c58e9da3 working on di container, tests
cin
parents: 415
diff changeset
28
3ed0c58e9da3 working on di container, tests
cin
parents: 415
diff changeset
29 print "Activated: ",tv_interval($t,[gettimeofday]),"\n";
3ed0c58e9da3 working on di container, tests
cin
parents: 415
diff changeset
30
3ed0c58e9da3 working on di container, tests
cin
parents: 415
diff changeset
31
407
c6e90e02dd17 renamed Lib->lib
cin
parents: 406
diff changeset
32 1;