| SPOPS documentation | Contained in the SPOPS distribution. |
SPOPS::Export::Perl - Dump SPOPS objects to a pure serialized Perl format
# See SPOPS::Export
Just dump a set of SPOPS objects to a perl data structure using Data::Dumper.
No extra ones beyond SPOPS::Export
create_record()
Just track the record to be exported.
create_footer()
Dump all tracked records out using Data::Dumper.
This will likely chew up tons of memory if you are exporting lots of objects.
Nothing known.
Copyright (c) 2001-2004 intes.net, inc.. All rights reserved.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Chris Winters <chris@cwinters.com>
| SPOPS documentation | Contained in the SPOPS distribution. |
package SPOPS::Export::Perl; # $Id: Perl.pm,v 3.3 2004/06/02 00:48:22 lachoy Exp $ use strict; use base qw( SPOPS::Export ); use Data::Dumper qw( Dumper ); $SPOPS::Export::Perl::VERSION = sprintf("%d.%02d", q$Revision: 3.3 $ =~ /(\d+)\.(\d+)/); my @track = (); sub create_footer { my $o = Dumper( \@track ); @track = (); return $o; } sub create_record { push @track, $_[1]; return '' } 1; __END__