annotate Lib/IMPL/lang.pm @ 206:c8fe3f84feba

+IMPL::Web::Handlers::ViewSelector +IMPL::Web::Handlers::ErrorHandler *IMPL::Web::Handlers::RestController moved types mappings to ViewSelector
author sergey
date Thu, 03 May 2012 16:48:39 +0400
parents 4d0e1962161c
children 6adaeb86945d
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
164
eb3e9861a761 SQL traits in progress
wizard
parents:
diff changeset
1 package IMPL::lang;
eb3e9861a761 SQL traits in progress
wizard
parents:
diff changeset
2 use strict;
eb3e9861a761 SQL traits in progress
wizard
parents:
diff changeset
3 use warnings;
eb3e9861a761 SQL traits in progress
wizard
parents:
diff changeset
4
165
76515373dac0 Added Class::Template,
wizard
parents: 164
diff changeset
5 use parent qw(Exporter);
164
eb3e9861a761 SQL traits in progress
wizard
parents:
diff changeset
6 use IMPL::_core::version;
173
aaab45153411 minor bugfixes
sourcer
parents: 169
diff changeset
7 use IMPL::clone qw(clone);
164
eb3e9861a761 SQL traits in progress
wizard
parents:
diff changeset
8
167
1f7a6d762394 SQL schema in progress
sourcer
parents: 165
diff changeset
9 require IMPL::Class::PropertyInfo;
164
eb3e9861a761 SQL traits in progress
wizard
parents:
diff changeset
10
167
1f7a6d762394 SQL schema in progress
sourcer
parents: 165
diff changeset
11 our @EXPORT = qw(&is);
1f7a6d762394 SQL schema in progress
sourcer
parents: 165
diff changeset
12 our %EXPORT_TAGS = (
194
4d0e1962161c Replaced tabs with spaces
cin
parents: 181
diff changeset
13 base => [
4d0e1962161c Replaced tabs with spaces
cin
parents: 181
diff changeset
14 qw(
4d0e1962161c Replaced tabs with spaces
cin
parents: 181
diff changeset
15 &is
4d0e1962161c Replaced tabs with spaces
cin
parents: 181
diff changeset
16 &clone
4d0e1962161c Replaced tabs with spaces
cin
parents: 181
diff changeset
17 )
4d0e1962161c Replaced tabs with spaces
cin
parents: 181
diff changeset
18 ],
4d0e1962161c Replaced tabs with spaces
cin
parents: 181
diff changeset
19 constants => [
4d0e1962161c Replaced tabs with spaces
cin
parents: 181
diff changeset
20 qw(
4d0e1962161c Replaced tabs with spaces
cin
parents: 181
diff changeset
21 &ACCESS_PUBLIC
4d0e1962161c Replaced tabs with spaces
cin
parents: 181
diff changeset
22 &ACCESS_PROTECTED
4d0e1962161c Replaced tabs with spaces
cin
parents: 181
diff changeset
23 &ACCESS_PRIVATE
4d0e1962161c Replaced tabs with spaces
cin
parents: 181
diff changeset
24 &PROP_GET
4d0e1962161c Replaced tabs with spaces
cin
parents: 181
diff changeset
25 &PROP_SET
4d0e1962161c Replaced tabs with spaces
cin
parents: 181
diff changeset
26 &PROP_OWNERSET
4d0e1962161c Replaced tabs with spaces
cin
parents: 181
diff changeset
27 &PROP_LIST
4d0e1962161c Replaced tabs with spaces
cin
parents: 181
diff changeset
28 &PROP_ALL
4d0e1962161c Replaced tabs with spaces
cin
parents: 181
diff changeset
29 )
4d0e1962161c Replaced tabs with spaces
cin
parents: 181
diff changeset
30 ],
167
1f7a6d762394 SQL schema in progress
sourcer
parents: 165
diff changeset
31
194
4d0e1962161c Replaced tabs with spaces
cin
parents: 181
diff changeset
32 declare => [
4d0e1962161c Replaced tabs with spaces
cin
parents: 181
diff changeset
33 qw(
4d0e1962161c Replaced tabs with spaces
cin
parents: 181
diff changeset
34 &public
4d0e1962161c Replaced tabs with spaces
cin
parents: 181
diff changeset
35 &protected
4d0e1962161c Replaced tabs with spaces
cin
parents: 181
diff changeset
36 &private
4d0e1962161c Replaced tabs with spaces
cin
parents: 181
diff changeset
37 &virtual
4d0e1962161c Replaced tabs with spaces
cin
parents: 181
diff changeset
38 &property
4d0e1962161c Replaced tabs with spaces
cin
parents: 181
diff changeset
39 &static
4d0e1962161c Replaced tabs with spaces
cin
parents: 181
diff changeset
40 &property
4d0e1962161c Replaced tabs with spaces
cin
parents: 181
diff changeset
41 )
4d0e1962161c Replaced tabs with spaces
cin
parents: 181
diff changeset
42 ],
4d0e1962161c Replaced tabs with spaces
cin
parents: 181
diff changeset
43 compare => [
4d0e1962161c Replaced tabs with spaces
cin
parents: 181
diff changeset
44 qw(
4d0e1962161c Replaced tabs with spaces
cin
parents: 181
diff changeset
45 &equals
4d0e1962161c Replaced tabs with spaces
cin
parents: 181
diff changeset
46 &equals_s
4d0e1962161c Replaced tabs with spaces
cin
parents: 181
diff changeset
47 &hashCompare
4d0e1962161c Replaced tabs with spaces
cin
parents: 181
diff changeset
48 )
4d0e1962161c Replaced tabs with spaces
cin
parents: 181
diff changeset
49 ],
4d0e1962161c Replaced tabs with spaces
cin
parents: 181
diff changeset
50 hash => [
4d0e1962161c Replaced tabs with spaces
cin
parents: 181
diff changeset
51 qw(
4d0e1962161c Replaced tabs with spaces
cin
parents: 181
diff changeset
52 &hashApply
4d0e1962161c Replaced tabs with spaces
cin
parents: 181
diff changeset
53 &hashMerge
4d0e1962161c Replaced tabs with spaces
cin
parents: 181
diff changeset
54 &hashDiff
4d0e1962161c Replaced tabs with spaces
cin
parents: 181
diff changeset
55 &hashCompare
4d0e1962161c Replaced tabs with spaces
cin
parents: 181
diff changeset
56 &hashParse
4d0e1962161c Replaced tabs with spaces
cin
parents: 181
diff changeset
57 &hashSave
4d0e1962161c Replaced tabs with spaces
cin
parents: 181
diff changeset
58 )
4d0e1962161c Replaced tabs with spaces
cin
parents: 181
diff changeset
59 ]
167
1f7a6d762394 SQL schema in progress
sourcer
parents: 165
diff changeset
60 );
1f7a6d762394 SQL schema in progress
sourcer
parents: 165
diff changeset
61
1f7a6d762394 SQL schema in progress
sourcer
parents: 165
diff changeset
62 our @EXPORT_OK = keys %{ { map (($_,1) , map (@{$_}, values %EXPORT_TAGS) ) } };
1f7a6d762394 SQL schema in progress
sourcer
parents: 165
diff changeset
63
1f7a6d762394 SQL schema in progress
sourcer
parents: 165
diff changeset
64 use constant {
194
4d0e1962161c Replaced tabs with spaces
cin
parents: 181
diff changeset
65 ACCESS_PUBLIC => 1,
4d0e1962161c Replaced tabs with spaces
cin
parents: 181
diff changeset
66 ACCESS_PROTECTED => 2,
4d0e1962161c Replaced tabs with spaces
cin
parents: 181
diff changeset
67 ACCESS_PRIVATE => 3,
4d0e1962161c Replaced tabs with spaces
cin
parents: 181
diff changeset
68 PROP_GET => 1,
4d0e1962161c Replaced tabs with spaces
cin
parents: 181
diff changeset
69 PROP_SET => 2,
4d0e1962161c Replaced tabs with spaces
cin
parents: 181
diff changeset
70 PROP_OWNERSET => 10,
4d0e1962161c Replaced tabs with spaces
cin
parents: 181
diff changeset
71 PROP_LIST => 4,
4d0e1962161c Replaced tabs with spaces
cin
parents: 181
diff changeset
72 PROP_ALL => 3
167
1f7a6d762394 SQL schema in progress
sourcer
parents: 165
diff changeset
73 };
164
eb3e9861a761 SQL traits in progress
wizard
parents:
diff changeset
74
eb3e9861a761 SQL traits in progress
wizard
parents:
diff changeset
75 sub is($$) {
194
4d0e1962161c Replaced tabs with spaces
cin
parents: 181
diff changeset
76 eval { $_[0]->isa( $_[1] ) };
167
1f7a6d762394 SQL schema in progress
sourcer
parents: 165
diff changeset
77 }
1f7a6d762394 SQL schema in progress
sourcer
parents: 165
diff changeset
78
1f7a6d762394 SQL schema in progress
sourcer
parents: 165
diff changeset
79 sub virtual($) {
194
4d0e1962161c Replaced tabs with spaces
cin
parents: 181
diff changeset
80 $_[0]->Virtual(1);
4d0e1962161c Replaced tabs with spaces
cin
parents: 181
diff changeset
81 $_[0];
167
1f7a6d762394 SQL schema in progress
sourcer
parents: 165
diff changeset
82 }
1f7a6d762394 SQL schema in progress
sourcer
parents: 165
diff changeset
83
1f7a6d762394 SQL schema in progress
sourcer
parents: 165
diff changeset
84 sub public($) {
194
4d0e1962161c Replaced tabs with spaces
cin
parents: 181
diff changeset
85 $_[0]->Access(ACCESS_PUBLIC);
4d0e1962161c Replaced tabs with spaces
cin
parents: 181
diff changeset
86 $_[0]->Implement;
4d0e1962161c Replaced tabs with spaces
cin
parents: 181
diff changeset
87 $_[0];
167
1f7a6d762394 SQL schema in progress
sourcer
parents: 165
diff changeset
88 }
1f7a6d762394 SQL schema in progress
sourcer
parents: 165
diff changeset
89
1f7a6d762394 SQL schema in progress
sourcer
parents: 165
diff changeset
90 sub private($) {
194
4d0e1962161c Replaced tabs with spaces
cin
parents: 181
diff changeset
91 $_[0]->Access(ACCESS_PRIVATE);
4d0e1962161c Replaced tabs with spaces
cin
parents: 181
diff changeset
92 $_[0]->Implement;
4d0e1962161c Replaced tabs with spaces
cin
parents: 181
diff changeset
93 $_[0];
167
1f7a6d762394 SQL schema in progress
sourcer
parents: 165
diff changeset
94 }
1f7a6d762394 SQL schema in progress
sourcer
parents: 165
diff changeset
95
1f7a6d762394 SQL schema in progress
sourcer
parents: 165
diff changeset
96 sub protected($) {
194
4d0e1962161c Replaced tabs with spaces
cin
parents: 181
diff changeset
97 $_[0]->Access(ACCESS_PROTECTED);
4d0e1962161c Replaced tabs with spaces
cin
parents: 181
diff changeset
98 $_[0]->Implement;
4d0e1962161c Replaced tabs with spaces
cin
parents: 181
diff changeset
99 $_[0];
164
eb3e9861a761 SQL traits in progress
wizard
parents:
diff changeset
100 }
eb3e9861a761 SQL traits in progress
wizard
parents:
diff changeset
101
167
1f7a6d762394 SQL schema in progress
sourcer
parents: 165
diff changeset
102 sub property($$;$) {
194
4d0e1962161c Replaced tabs with spaces
cin
parents: 181
diff changeset
103 my ( $propName, $mutators, $attributes ) = @_;
4d0e1962161c Replaced tabs with spaces
cin
parents: 181
diff changeset
104 my $Info = new IMPL::Class::PropertyInfo(
4d0e1962161c Replaced tabs with spaces
cin
parents: 181
diff changeset
105 {
4d0e1962161c Replaced tabs with spaces
cin
parents: 181
diff changeset
106 Name => $propName,
4d0e1962161c Replaced tabs with spaces
cin
parents: 181
diff changeset
107 Mutators => $mutators,
4d0e1962161c Replaced tabs with spaces
cin
parents: 181
diff changeset
108 Class => scalar(caller),
4d0e1962161c Replaced tabs with spaces
cin
parents: 181
diff changeset
109 Attributes => $attributes
4d0e1962161c Replaced tabs with spaces
cin
parents: 181
diff changeset
110 }
4d0e1962161c Replaced tabs with spaces
cin
parents: 181
diff changeset
111 );
4d0e1962161c Replaced tabs with spaces
cin
parents: 181
diff changeset
112 return $Info;
167
1f7a6d762394 SQL schema in progress
sourcer
parents: 165
diff changeset
113 }
1f7a6d762394 SQL schema in progress
sourcer
parents: 165
diff changeset
114
1f7a6d762394 SQL schema in progress
sourcer
parents: 165
diff changeset
115 sub static($$) {
194
4d0e1962161c Replaced tabs with spaces
cin
parents: 181
diff changeset
116 my ( $name, $value ) = @_;
4d0e1962161c Replaced tabs with spaces
cin
parents: 181
diff changeset
117 my $class = caller;
4d0e1962161c Replaced tabs with spaces
cin
parents: 181
diff changeset
118 $class->static_accessor( $name, $value );
167
1f7a6d762394 SQL schema in progress
sourcer
parents: 165
diff changeset
119 }
1f7a6d762394 SQL schema in progress
sourcer
parents: 165
diff changeset
120
1f7a6d762394 SQL schema in progress
sourcer
parents: 165
diff changeset
121 sub equals {
194
4d0e1962161c Replaced tabs with spaces
cin
parents: 181
diff changeset
122 if (defined $_[0]) {
4d0e1962161c Replaced tabs with spaces
cin
parents: 181
diff changeset
123 return 0 if (not defined $_[1]);
4d0e1962161c Replaced tabs with spaces
cin
parents: 181
diff changeset
124
4d0e1962161c Replaced tabs with spaces
cin
parents: 181
diff changeset
125 return $_[0] == $_[1];
4d0e1962161c Replaced tabs with spaces
cin
parents: 181
diff changeset
126 } else {
4d0e1962161c Replaced tabs with spaces
cin
parents: 181
diff changeset
127 return 0 if defined $_[1];
4d0e1962161c Replaced tabs with spaces
cin
parents: 181
diff changeset
128
4d0e1962161c Replaced tabs with spaces
cin
parents: 181
diff changeset
129 return 1;
4d0e1962161c Replaced tabs with spaces
cin
parents: 181
diff changeset
130 }
167
1f7a6d762394 SQL schema in progress
sourcer
parents: 165
diff changeset
131 }
1f7a6d762394 SQL schema in progress
sourcer
parents: 165
diff changeset
132
1f7a6d762394 SQL schema in progress
sourcer
parents: 165
diff changeset
133 sub equals_s {
194
4d0e1962161c Replaced tabs with spaces
cin
parents: 181
diff changeset
134 if (defined $_[0]) {
4d0e1962161c Replaced tabs with spaces
cin
parents: 181
diff changeset
135 return 0 if (not defined $_[1]);
4d0e1962161c Replaced tabs with spaces
cin
parents: 181
diff changeset
136
4d0e1962161c Replaced tabs with spaces
cin
parents: 181
diff changeset
137 return $_[0] eq $_[1];
4d0e1962161c Replaced tabs with spaces
cin
parents: 181
diff changeset
138 } else {
4d0e1962161c Replaced tabs with spaces
cin
parents: 181
diff changeset
139 return 0 if defined $_[1];
4d0e1962161c Replaced tabs with spaces
cin
parents: 181
diff changeset
140
4d0e1962161c Replaced tabs with spaces
cin
parents: 181
diff changeset
141 return 1;
4d0e1962161c Replaced tabs with spaces
cin
parents: 181
diff changeset
142 }
167
1f7a6d762394 SQL schema in progress
sourcer
parents: 165
diff changeset
143 }
1f7a6d762394 SQL schema in progress
sourcer
parents: 165
diff changeset
144
168
6148f89bb7bf IMPL::SQL::Schema::Traits::Diff alfa version
sourcer
parents: 167
diff changeset
145 sub hashDiff {
194
4d0e1962161c Replaced tabs with spaces
cin
parents: 181
diff changeset
146 my ($src,$dst) = @_;
4d0e1962161c Replaced tabs with spaces
cin
parents: 181
diff changeset
147
4d0e1962161c Replaced tabs with spaces
cin
parents: 181
diff changeset
148 $dst = $dst ? { %$dst } : {} ;
4d0e1962161c Replaced tabs with spaces
cin
parents: 181
diff changeset
149 $src ||= {};
4d0e1962161c Replaced tabs with spaces
cin
parents: 181
diff changeset
150
4d0e1962161c Replaced tabs with spaces
cin
parents: 181
diff changeset
151 my %result;
4d0e1962161c Replaced tabs with spaces
cin
parents: 181
diff changeset
152
4d0e1962161c Replaced tabs with spaces
cin
parents: 181
diff changeset
153 foreach my $key ( keys %$src ) {
4d0e1962161c Replaced tabs with spaces
cin
parents: 181
diff changeset
154 if (exists $dst->{$key}) {
4d0e1962161c Replaced tabs with spaces
cin
parents: 181
diff changeset
155 $result{"+$key"} = $dst->{$key} unless equals_s($dst->{$key}, $src->{$key});
4d0e1962161c Replaced tabs with spaces
cin
parents: 181
diff changeset
156 delete $dst->{$key};
4d0e1962161c Replaced tabs with spaces
cin
parents: 181
diff changeset
157 } else {
4d0e1962161c Replaced tabs with spaces
cin
parents: 181
diff changeset
158 $result{"-$key"} = 1;
4d0e1962161c Replaced tabs with spaces
cin
parents: 181
diff changeset
159 }
4d0e1962161c Replaced tabs with spaces
cin
parents: 181
diff changeset
160 }
4d0e1962161c Replaced tabs with spaces
cin
parents: 181
diff changeset
161
4d0e1962161c Replaced tabs with spaces
cin
parents: 181
diff changeset
162 $result{"+$_"} = $dst->{$_} foreach keys %$dst;
4d0e1962161c Replaced tabs with spaces
cin
parents: 181
diff changeset
163
4d0e1962161c Replaced tabs with spaces
cin
parents: 181
diff changeset
164 return \%result;
168
6148f89bb7bf IMPL::SQL::Schema::Traits::Diff alfa version
sourcer
parents: 167
diff changeset
165 }
6148f89bb7bf IMPL::SQL::Schema::Traits::Diff alfa version
sourcer
parents: 167
diff changeset
166
6148f89bb7bf IMPL::SQL::Schema::Traits::Diff alfa version
sourcer
parents: 167
diff changeset
167 sub hashMerge {
194
4d0e1962161c Replaced tabs with spaces
cin
parents: 181
diff changeset
168 return hashApply( { %{$_[0]} }, $_[1] );
168
6148f89bb7bf IMPL::SQL::Schema::Traits::Diff alfa version
sourcer
parents: 167
diff changeset
169 }
6148f89bb7bf IMPL::SQL::Schema::Traits::Diff alfa version
sourcer
parents: 167
diff changeset
170
6148f89bb7bf IMPL::SQL::Schema::Traits::Diff alfa version
sourcer
parents: 167
diff changeset
171 sub hashApply {
194
4d0e1962161c Replaced tabs with spaces
cin
parents: 181
diff changeset
172 my ($target,$diff) = @_;
4d0e1962161c Replaced tabs with spaces
cin
parents: 181
diff changeset
173
4d0e1962161c Replaced tabs with spaces
cin
parents: 181
diff changeset
174 while ( my ($key,$value) = each %$diff) {
4d0e1962161c Replaced tabs with spaces
cin
parents: 181
diff changeset
175 $key =~ /^(\+|-)?(.*)$/;
4d0e1962161c Replaced tabs with spaces
cin
parents: 181
diff changeset
176 my $op = $1 || '+';
4d0e1962161c Replaced tabs with spaces
cin
parents: 181
diff changeset
177 $key = $2;
4d0e1962161c Replaced tabs with spaces
cin
parents: 181
diff changeset
178
4d0e1962161c Replaced tabs with spaces
cin
parents: 181
diff changeset
179 if ($op eq '-') {
4d0e1962161c Replaced tabs with spaces
cin
parents: 181
diff changeset
180 delete $target->{$key};
4d0e1962161c Replaced tabs with spaces
cin
parents: 181
diff changeset
181 } else {
4d0e1962161c Replaced tabs with spaces
cin
parents: 181
diff changeset
182 $target->{$key} = $value;
4d0e1962161c Replaced tabs with spaces
cin
parents: 181
diff changeset
183 }
4d0e1962161c Replaced tabs with spaces
cin
parents: 181
diff changeset
184 }
4d0e1962161c Replaced tabs with spaces
cin
parents: 181
diff changeset
185
4d0e1962161c Replaced tabs with spaces
cin
parents: 181
diff changeset
186 return $target;
168
6148f89bb7bf IMPL::SQL::Schema::Traits::Diff alfa version
sourcer
parents: 167
diff changeset
187 }
6148f89bb7bf IMPL::SQL::Schema::Traits::Diff alfa version
sourcer
parents: 167
diff changeset
188
6148f89bb7bf IMPL::SQL::Schema::Traits::Diff alfa version
sourcer
parents: 167
diff changeset
189 sub hashCompare {
194
4d0e1962161c Replaced tabs with spaces
cin
parents: 181
diff changeset
190 my ($l,$r,$cmp) = @_;
4d0e1962161c Replaced tabs with spaces
cin
parents: 181
diff changeset
191
4d0e1962161c Replaced tabs with spaces
cin
parents: 181
diff changeset
192 $cmp ||= \&equals_s;
4d0e1962161c Replaced tabs with spaces
cin
parents: 181
diff changeset
193
4d0e1962161c Replaced tabs with spaces
cin
parents: 181
diff changeset
194 return 0 unless scalar keys %$l == scalar keys %$r;
4d0e1962161c Replaced tabs with spaces
cin
parents: 181
diff changeset
195 &$cmp($l->{$_},$r->{$_}) || return 0 foreach keys %$l;
4d0e1962161c Replaced tabs with spaces
cin
parents: 181
diff changeset
196
4d0e1962161c Replaced tabs with spaces
cin
parents: 181
diff changeset
197 return 1;
168
6148f89bb7bf IMPL::SQL::Schema::Traits::Diff alfa version
sourcer
parents: 167
diff changeset
198 }
6148f89bb7bf IMPL::SQL::Schema::Traits::Diff alfa version
sourcer
parents: 167
diff changeset
199
174
d920d2b70230 minor changes
sergey
parents: 173
diff changeset
200 sub hashParse {
194
4d0e1962161c Replaced tabs with spaces
cin
parents: 181
diff changeset
201 my ($s,$p,$d) = @_;
4d0e1962161c Replaced tabs with spaces
cin
parents: 181
diff changeset
202
4d0e1962161c Replaced tabs with spaces
cin
parents: 181
diff changeset
203 $p = $p ? qr/$p/ : qr/\n+/;
4d0e1962161c Replaced tabs with spaces
cin
parents: 181
diff changeset
204 $d = $d ? qr/$d/ : qr/\s*=\s*/;
4d0e1962161c Replaced tabs with spaces
cin
parents: 181
diff changeset
205
4d0e1962161c Replaced tabs with spaces
cin
parents: 181
diff changeset
206 return {
4d0e1962161c Replaced tabs with spaces
cin
parents: 181
diff changeset
207 map split($d,$_,2), split($p,$s)
4d0e1962161c Replaced tabs with spaces
cin
parents: 181
diff changeset
208 };
174
d920d2b70230 minor changes
sergey
parents: 173
diff changeset
209 }
d920d2b70230 minor changes
sergey
parents: 173
diff changeset
210
d920d2b70230 minor changes
sergey
parents: 173
diff changeset
211 sub hashSave {
194
4d0e1962161c Replaced tabs with spaces
cin
parents: 181
diff changeset
212 my ($hash,$p,$d) = @_;
4d0e1962161c Replaced tabs with spaces
cin
parents: 181
diff changeset
213
4d0e1962161c Replaced tabs with spaces
cin
parents: 181
diff changeset
214 return "" unless ref $hash eq 'HASH';
4d0e1962161c Replaced tabs with spaces
cin
parents: 181
diff changeset
215
4d0e1962161c Replaced tabs with spaces
cin
parents: 181
diff changeset
216 $p ||= "\n";
4d0e1962161c Replaced tabs with spaces
cin
parents: 181
diff changeset
217 $d ||= " = ";
4d0e1962161c Replaced tabs with spaces
cin
parents: 181
diff changeset
218
4d0e1962161c Replaced tabs with spaces
cin
parents: 181
diff changeset
219 return
4d0e1962161c Replaced tabs with spaces
cin
parents: 181
diff changeset
220 join(
4d0e1962161c Replaced tabs with spaces
cin
parents: 181
diff changeset
221 $p,
4d0e1962161c Replaced tabs with spaces
cin
parents: 181
diff changeset
222 map(
4d0e1962161c Replaced tabs with spaces
cin
parents: 181
diff changeset
223 join(
4d0e1962161c Replaced tabs with spaces
cin
parents: 181
diff changeset
224 $d,
4d0e1962161c Replaced tabs with spaces
cin
parents: 181
diff changeset
225 $_,
4d0e1962161c Replaced tabs with spaces
cin
parents: 181
diff changeset
226 $hash->{$_}
4d0e1962161c Replaced tabs with spaces
cin
parents: 181
diff changeset
227 ),
4d0e1962161c Replaced tabs with spaces
cin
parents: 181
diff changeset
228 keys %$hash
4d0e1962161c Replaced tabs with spaces
cin
parents: 181
diff changeset
229 )
4d0e1962161c Replaced tabs with spaces
cin
parents: 181
diff changeset
230 );
174
d920d2b70230 minor changes
sergey
parents: 173
diff changeset
231 }
d920d2b70230 minor changes
sergey
parents: 173
diff changeset
232
167
1f7a6d762394 SQL schema in progress
sourcer
parents: 165
diff changeset
233 1;