I have
Code:
#!/usr/local/ActivePerl-5.6/bin/perl
use File::Spec; #For platform independent file path manipulation
#Read in config file and put key/value pair into vars Hashtable
open CONFIGFILE,$ARGV[0];
while(<CONFIGFILE>){
if (/^(\w+)=(.*)$/)
{
$vars{$1} = $2;
}
}
close CONFIGFILE;
$root = $vars{"root"};
print "ROOT IS ";
print $root;
print "\n";
my $today = "20010310";
$today1 = File::Spec->catfile($root,$today);
print $today1;
The above functions normally in NT, but under Solaris, I get the following printout
ROOT IS /home/myID/
/20010310
What have I done wrong?