Hi All,
I have an array of windows path...., where some of the directory names are
1.pure charectors,
2. some of them are only numbers
3. some of directory or file names contains only meta characters [~`!@#$%^&()_+-={}[];'.,]
4. some of the directory or file names contains mixture of all
C:\123\abc\abc\ghe C:\123\abc\fgh\ijk C:\123\abc\$%^&\lmn\t.txt C\:123\abc\$%^&\~`!@#$%^&()_+-={}[];'.,
The tree structure will be exactly like above...
I hav an assignment where I have build hash table like this
$hash{C:\123\$%^&\lmn} = t.txt To generate this I need to build dynamic keys in the loop and Could any one help me in this? I am stuck here . Plz. help Thanks, Sun$hash{C:\} =[123,123,123] $hash{C:\123} = [abc,abc,abc] $hash{C:\123\abc} = [abc,fgh,ijk] $hash{C:\123\fgh} =[ijk,lmn] $hash{C:\123\$%^&} = [lmn]
20100908 Janitored by Corion: Added formatting, code tags, as per Writeup Formatting Tips
In reply to need help in building dynamic regular expression by suniln
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |