
sub commentsHandler
{
    $html = shift;
    $action = shift;

    my( @rValue ) = (); 

    if( $action =~ /submit/ )
    {
	   open( OUT_FILE, ">> $zeddRoot_g/data/comments.db" );
	
   	print OUT_FILE $html;
   	print OUT_FILE "\n";
   	
   	close( OUT_FILE );	
    }

    open( IN_FILE, "$zeddRoot_g/data/comments.db" );
	
    while( <IN_FILE> )
    {	
   	push @rValue, { 'item' => $_ };
    }
    close( IN_FILE );

    return @rValue;
}

1;
