Hi,
I have 2 perl SubRoutines (sub 1 and sub 2). I created two perl modules for these (Sub1.pm and Sub2.pm).
How can I include these in a config file (say Config.cfg) and call the config file in my main script Rename.pl to use the 2 subroutines?
Right now here are the content of Config.cfg
#Config.cfg
#!/usr/bin/perl
$InputRename = Sub1.pm
$OutputRename = Sub2.pm
I'm calling this in Rename.pl by doing this
require config.cfg;
.
.
.
.
InputRename();
.
.
.
.
OutputRename();
I'm new at Perl. Please help.
Thank You.