R
Rickard
Hi,
I am currently setting up an Perl script which will create an directory.
That is not any problem, the problem is that how do i create an
directory out of an variable. Hmm, like this,
my $test = "/tmp/"
my $test2 = "test"
mkpath('$test$test2), 0, 0777);
What i wan´t is to use the values of $test & $test2 to create an directory.
Is that possible?
When i try above i create an directory called $test$test2 instead of
"/tmp/test"
I have read about it at cpan, but no info about how to do it.
//Rickard
I am currently setting up an Perl script which will create an directory.
That is not any problem, the problem is that how do i create an
directory out of an variable. Hmm, like this,
my $test = "/tmp/"
my $test2 = "test"
mkpath('$test$test2), 0, 0777);
What i wan´t is to use the values of $test & $test2 to create an directory.
Is that possible?
When i try above i create an directory called $test$test2 instead of
"/tmp/test"
I have read about it at cpan, but no info about how to do it.
//Rickard