Advertisement
bvn13

Untitled

Feb 7th, 2013
226
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. #!/usr/bin/perl -w
  2.  
  3. use strict;
  4.  
  5. ####################
  6. ##подключаем обработчики базы данных
  7. use File::Basename 'dirname';
  8. use File::Spec;
  9. use lib join '/', File::Spec->splitdir(dirname(__FILE__)), 'lib';
  10. #####################
  11.  
  12. use Data::Dumper;
  13. sub dmp { print Dumper @_; };
  14.  
  15. use ASObjects::MValue;
  16. use ASObjects::Const;
  17. use ASObjects::CatalogTest;
  18.  
  19. my $a = ASObjects::Const->new;
  20. $a->value(10);
  21. print $a->value;
  22.  
  23. my $c = ASObjects::CatalogTest->new(_type=>'Nomenclatures');#->init;
  24. #$c->attrs->{code}->value(12);
  25. #$c->attrs->{name}->value('fff');
  26. #$c->attrs->{'aaa'} = ASObjects::MValue->new(value => 'qwerty');
  27. #$c->set_attr('aaa', 'ff');
  28. $c->attrs->{id}->{value} = 12;
  29. dmp $c;
  30. print "\n$c\n";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement