This is what I wish to do:
In every script I make/develop I always call perl libraries and sub routines like:
#! /directory/bin/perl
system('source /directory/.cshrc&');
use Net::Domain qw(hostname hostfqdn hostdomain);
use Time::Local;
use Time::Piece;
use Switch;
use Exporter;
#use strict;
use Data::Dumper qw(Dumper);
use Time::Local;
use Time::Piece;
use Time::Seconds();
use Tk;
use Tk::BrowseEntry;
use Tk::Balloon;
use Tk::widgets qw(Checkbutton BrowseEntry);
use Tk::NoteBook;
use Tk::Pane;
use DBI;
use DBD::Oracle;
$ORACLE_HOME = "/lolDirectory/10.2.0/elinux";
$ENV{ORACLE_HOME}=$ORACLE_HOME;
###############
# SUBROUTINES #
###############
&ownerChecker;
&processChecker;
I wish i can put all those to a file and load it to a perl script, in the same time running it as if it is part of the perl script itself like:
#! /directory/bin/perl
# load the content of the file and run it as a part of the script
Is this possible? If it is possible? If it is possible, from calling libs to calling checker scripts could be very generic and standard.