/[webpac2]/trunk/conf/lookup/ffkk-arti.pl
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Contents of /trunk/conf/lookup/ffkk-arti.pl

Parent Directory Parent Directory | Revision Log Revision Log


Revision 679 - (show annotations)
Fri Sep 15 14:56:07 2006 UTC (17 years, 7 months ago) by dpavlin
File MIME type: text/plain
File size: 489 byte(s)
example of next-generation lookup

1 use Data::Dump qw/dump/;
2
3 sub marc {};
4
5 sub lookup {
6 my ( $db, $input, $from, $op, $to, $closure ) = @_;
7
8 print dump(@_),$/;
9 }
10
11 marc('777','v',
12
13 lookup(
14 'ffkk','peri', [ '11' ], 'eq',
15 [ '11' ],
16 sub {
17 'ffkk/perl' . lrec('000')
18 }
19 ) || lookup(
20 'ffkk','peri', [ qw/200 a 200 e/ ], 'eq',
21 [ qw/200 a 200 e/ ],
22 sub {
23 'ffkk/perl' . lrec('000')
24 }
25 ) || lookup(
26 'ffkk','peri', [ qw/200 a/ ], 'eq',
27 [ qw/200 a/ ],
28 sub {
29 'ffkk/perl' . lrec('000')
30 }
31 )
32
33 );

  ViewVC Help
Powered by ViewVC 1.1.26