Hi monks !! I don't know if following question is a simple issue but i ask it anyway.
I would like to recover a path ("my $folder") from below conf.file using perl:
my $folder = 'E:\FOLDER\Test\WEB'; { license => 'kit-licence.zip', programs => [ #template society =>\%program_work 'VIKTOR DESCRIPTION PRODUCT' => { name => 'VIKTOR ', parameters => [ Count_id => '06 ( +Viktor)', Birth_date => '1995-04-3 +0', Marriage_date => '2014-05-26', Divorce_date => '2015-03-30', Activities_folder => $folder. +'\VIKTOR\independent worker', Activities_format => 'Enterpr +ise Format (V35)', Description_File_from => $folder.'\VI +KTOR\FILE\description.xml', ] }, ] };
And i would like to add (logically at the end of path) in this path,the filename: 'kit-licence.zip' from here : license => 'kit-licence.zip'
My perl file is following :
#test.pl use Modern::Perl; my $config = do 'work.conf'; use Data::Dumper; say Dumper( $config );
How can i do it ?
Many thanks !!
In reply to Recover a path from a config file by Chaoui05
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |