Help for this page

Select Code to Download


  1. or download this
    my $doc = $AllDocuments->GetFirstDocument;
    while ( $doc ) {
        # Fetch the next document prior to running code to guard against s
    +omeone deciding to delete $doc.
    ...
        ...
        $doc = $NextDoc;
    }
    
  2. or download this
    sub GetNthDocument {
        my ( $Collection, $n ) = @_;
    ...
    
        return $doc;
    }
    
  3. or download this
    sub Doc2HTML {
        my ( $doc ) = @_;
        my $db = $doc->{Parent};
    ...
    
        return LWP::Simple::get( "http://$server/$filepath/$view/$unid" );
    }