in reply to Recover a path from a config file
I did that now and it works:
In my folder, in config.file
And in my test.file :$::folder = 'E:\FOLDER\Test\WEB';
use File::Spec::Functions qw/catfile/; my $filename = catfile($::folder, $config->{licence});
And it works fine.
Thanks all
PS: I have now my config.file with thoses little changes, at the beginning of this one :
my $folder = 'E:\FOLDER\Test\WEB'; { license => [ 'kit-licence.zip', 'kit-work.zip' ], programs => [..
I have this simple question. How can i do if i want to get first licence or the second doing that :
use File::Spec::Functions qw/catfile/; my $filename = catfile($::folder, $config->{licence});
Thanks
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Recover a path from a config file
by GotToBTru (Prior) on Jun 06, 2016 at 18:19 UTC | |
by Chaoui05 (Scribe) on Jun 07, 2016 at 10:33 UTC |