$val="D:\\VmWare\\*"; find(\&print_name, "$val"); sub print_name { push(@array_name,$File::Find::name); } foreach $val(@array_name) { print "$val \n"; }
actually i have more paths where u have * in middle of the path also.The output of above is giving as empty
In reply to Re^2: Transversing thru dir using regex rather than a absolute path
by perlprint
in thread Transversing thru dir using regex rather than a absolute path
by perlprint
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |