annotate Lib/IMPL/ORM/Helpers.pm @ 35:f25d021780b3

DOM::Navigator::Builder working version
author Sergey
date Tue, 17 Nov 2009 17:46:24 +0300
parents 6d33f75c6e1f
children 16ada169ca75
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
28
6d33f75c6e1f ORM in works
Sergey
parents:
diff changeset
1 package IMPL::ORM::Helpers;
6d33f75c6e1f ORM in works
Sergey
parents:
diff changeset
2 use strict;
6d33f75c6e1f ORM in works
Sergey
parents:
diff changeset
3 use warnings;
6d33f75c6e1f ORM in works
Sergey
parents:
diff changeset
4
6d33f75c6e1f ORM in works
Sergey
parents:
diff changeset
5 require Exporter;
6d33f75c6e1f ORM in works
Sergey
parents:
diff changeset
6 our @ISA = qw(Exporter);
6d33f75c6e1f ORM in works
Sergey
parents:
diff changeset
7 our @EXPORT_OK = qw(&Map &Box);
6d33f75c6e1f ORM in works
Sergey
parents:
diff changeset
8
6d33f75c6e1f ORM in works
Sergey
parents:
diff changeset
9 sub Map($$) {
6d33f75c6e1f ORM in works
Sergey
parents:
diff changeset
10 my ($TKey,$TValue) = @_;
6d33f75c6e1f ORM in works
Sergey
parents:
diff changeset
11
6d33f75c6e1f ORM in works
Sergey
parents:
diff changeset
12 $TKey =~ s/:://g;
6d33f75c6e1f ORM in works
Sergey
parents:
diff changeset
13 $TValue =~ s/:://g;
6d33f75c6e1f ORM in works
Sergey
parents:
diff changeset
14
6d33f75c6e1f ORM in works
Sergey
parents:
diff changeset
15 return "IMPL::ORM::Map::${TKey}${TValue}";
6d33f75c6e1f ORM in works
Sergey
parents:
diff changeset
16 }
6d33f75c6e1f ORM in works
Sergey
parents:
diff changeset
17
6d33f75c6e1f ORM in works
Sergey
parents:
diff changeset
18 sub Box($) {
6d33f75c6e1f ORM in works
Sergey
parents:
diff changeset
19 my ($TValue) = @_;
6d33f75c6e1f ORM in works
Sergey
parents:
diff changeset
20 $TValue =~ s/:://g;
6d33f75c6e1f ORM in works
Sergey
parents:
diff changeset
21 return "IMPL::ORM::Box::$TValue";
6d33f75c6e1f ORM in works
Sergey
parents:
diff changeset
22 }
6d33f75c6e1f ORM in works
Sergey
parents:
diff changeset
23
6d33f75c6e1f ORM in works
Sergey
parents:
diff changeset
24 1;