Lots of fixes for 2.2, see README.txt for details
[PsN.git] / lib / extra_data_subs.pm
blobb385d280378c2eff39476d26ffd5d6d6235e3f78
1 start _write
3 die "ERROR: extra_data -> _write: No filename set in object.\n"
4 if( $filename eq '' );
6 if( not defined $self -> {'individuals'} ){
7 unless( $filename eq $self -> full_name ){
8 $self -> synchronize;
9 }
12 open(FILE,">$filename") ||
13 die "Could not create $filename\n";
14 my @data = @{$self -> format_data};
15 for ( @data ) {
16 print ( FILE );
18 close(FILE);
20 end _write