/[webpac2]/trunk/lib/WebPAC/Output/JSON.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

Diff of /trunk/lib/WebPAC/Output/JSON.pm

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 916 by dpavlin, Tue Oct 30 20:11:02 2007 UTC revision 917 by dpavlin, Tue Oct 30 21:57:36 2007 UTC
# Line 6  use strict; Line 6  use strict;
6  use base qw/WebPAC::Common WebPAC::Output Class::Accessor/;  use base qw/WebPAC::Common WebPAC::Output Class::Accessor/;
7  __PACKAGE__->mk_accessors(qw(path));  __PACKAGE__->mk_accessors(qw(path));
8    
 #use Encode qw/from_to/;  
9  use Data::Dump qw/dump/;  use Data::Dump qw/dump/;
10  use JSON;  use JSON;
11  use File::Slurp;  use File::Slurp;
# Line 31  Create JSON output for export into other Line 30  Create JSON output for export into other
30    
31  =head2 new  =head2 new
32    
33   my $output = new WebPAC::Output::JSON({   my $out = new WebPAC::Output::JSON({
34          path => '/path/to/file.js',          path => '/path/to/file.js',
35   });   });
36    
# Line 47  path to JSON file Line 46  path to JSON file
46    
47  =head2 init  =head2 init
48    
49    $output->init;    $out->init;
50    
51  =cut  =cut
52    
# Line 67  sub init { Line 66  sub init {
66    
67  Adds one entry to database.  Adds one entry to database.
68    
69    $est->add( 42, $ds );    $out->add( 42, $ds );
70    
71  =cut  =cut
72    
# Line 89  sub add { Line 88  sub add {
88    
89  =head2 finish  =head2 finish
90    
91   $output->finish;   $out->finish;
92    
93  =cut  =cut
94    

Legend:
Removed from v.916  
changed lines
  Added in v.917

  ViewVC Help
Powered by ViewVC 1.1.26