nisha has asked for the wisdom of the Perl Monks concerning the following question:
I have this problem and please help me solve it.
Suppose i have 2 variables
my script has to do a pattern match to extract everything after c:\\reports in $dir1 and then i should be able to create a similar directory structure in$dir1 = "c:\\reports\\temp1\\temp2"; $dir2 = "c:\\output";
How do i go about extracting it this way and how can i create directories recursively?? I should be able to do a pattern match for any given generic value.c:\\output i.e c:\\output\\temp1\\temp2.
Please please help me!
Considered by jbrugger: delete, seems to me it's a dup of Directory operations
Unconsidered by Arunbear: keep (and edit) votes prevented reaping; Keep/Edit/Delete: 11/1/18
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Extracting from variables
by davido (Cardinal) on Nov 08, 2005 at 07:59 UTC | |
|
Re: Extracting from variables
by murugu (Curate) on Nov 08, 2005 at 08:02 UTC | |
|
Re: Extracting from variables
by blazar (Canon) on Nov 08, 2005 at 10:44 UTC |