/[Sack]/trunk/lib/Sack/From.pm
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/lib/Sack/From.pm

Parent Directory Parent Directory | Revision Log Revision Log


Revision 92 - (show annotations)
Sat Oct 3 21:09:51 2009 UTC (14 years, 9 months ago) by dpavlin
File size: 452 byte(s)
begin refactor to lorry which will carry sacks for us
(creating nodes and communicating with them using Storable
traveling over sockets)

1 package Sack::From;
2
3 use warnings;
4 use strict;
5
6 use Data::Dump qw(dump);
7
8 use lib "/srv/webpac2/lib/";
9 use WebPAC::Input::ISI;
10
11 $WebPAC::Input::ISI::subfields = undef; # disable parsing of subfields
12
13 sub shard {
14 my $self = shift;
15
16 my $input = WebPAC::Input::ISI->new( @_ );
17
18 warn "got ", $input->size, " records for ", dump @_;
19
20 my $data;
21
22 foreach my $pos ( 1 .. $input->size ) {
23 push @$data, $input->fetch_rec( $pos );
24 }
25
26 return $data;
27 }
28
29 1;

  ViewVC Help
Powered by ViewVC 1.1.26