in reply to problem path stored in hash
my %config = (workingDir => '/root/working/'); my $filename = 'test.pl'; my $fullpath = $config{'workingDir'}.$filename; print "Dir: $config{'workingDir'}\n"; print "File: $filename\n"; print "Full path: $fullpath\n";
Produces the output
Dir: /root/working/ File: test.pl Full path: /root/working/test.pl
Which is exactly what I expected.
So the error is likely in a part of the code that you don't show us, which is unfortunate because it means we can't help you.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: problem path stored in hash
by awsiv (Initiate) on Jun 25, 2010 at 09:52 UTC | |
by cdarke (Prior) on Jun 25, 2010 at 10:09 UTC | |
by awsiv (Initiate) on Jun 25, 2010 at 11:02 UTC | |
by cdarke (Prior) on Jun 25, 2010 at 11:28 UTC | |
by jethro (Monsignor) on Jun 25, 2010 at 10:58 UTC |