--- tamtam/tamtam2socialtext.pl 2007/12/12 13:09:29 7 +++ tamtam/tamtam2socialtext.pl 2007/12/12 13:17:15 8 @@ -11,7 +11,7 @@ use HTTP::Date; use Data::Dump qw/dump/; -my $max = 2; +my $max = 5; my $page; my $page_date; @@ -25,6 +25,9 @@ my $ref = XMLin( $path ) || die "can't open $path: $!"; my $name = $ref->{name} || die "no name in $path"; + + return if $name =~ m/^TamSystem/; + my $date = $ref->{meta}->{LastModified}; if ( ! $date ) { warn "SKIP: no LastModified in $path $name"; @@ -91,9 +94,8 @@ if ( $name =~ m!/! ) { my @page_tags = split(m!/!, $name); - pop @page_tags; # remove page name + $name = pop @page_tags; # remove page name push @tags, @page_tags; - $name =~ s!/!_!g; } $Rester->put_page( $name, {