SPOPS::Export::Perl - Dump SPOPS objects to a pure serialized Perl format


SPOPS documentation Contained in the SPOPS distribution.

Index


Code Index:

NAME

Top

SPOPS::Export::Perl - Dump SPOPS objects to a pure serialized Perl format

SYNOPSIS

Top

 # See SPOPS::Export

DESCRIPTION

Top

Just dump a set of SPOPS objects to a perl data structure using Data::Dumper.

PROPERTIES

Top

No extra ones beyond SPOPS::Export

METHODS

Top

create_record()

Just track the record to be exported.

create_footer()

Dump all tracked records out using Data::Dumper.

BUGS

Top

This will likely chew up tons of memory if you are exporting lots of objects.

TO DO

Top

Nothing known.

SEE ALSO

Top

SPOPS::Import

Data::Dumper

COPYRIGHT

Top

AUTHORS

Top

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__