#!/usr/bin/perl -w

# mod_cgi instance script for FileUploader::FlowData module:

use strict;
use warnings;

BEGIN {
    use FindBin qw($RealBin); # warn $RealBin;
    use lib (
        '/home/raj/perl5/lib/perl5',
        '/home/raj/apps/FileUploader/lib',
        $RealBin . '/../../lib',
    );
    # Error handlers:
    # $SIG{__WARN__} = sub { require Carp; Carp::cluck(@_) }; # warnings with stack trace to log
    use FileUploader::ErrorHandler; 
    # use CGI::Carp qw(fatalsToBrowser);
    # use CGI::HTMLError trace => 1;
	# use CGI::Carp::DebugScreen;
    # $SIG{__WARN__} = sub { CORE::die(@_) }; 
    # use Carp::Always;
    # $SIG{ __DIE__ } = sub { Carp::confess( @_ ) };
}

use FileUploader::FlowData;

my $app = FileUploader::FlowData->new(
    PARAMS => {
        cfg_file  => '/home/raj/apps/FileUploader/lib/config.pl', 
        file_type => 'flow_data',
    }
);

$app->run;