There is nothing wrong with using glob for this purpose but there are some pitfalls. You have to make sure you are giving the glob what it needs which you are not as has been pointed out already. Do your files have whitespace in the names or paths? Do you need to call glob in scalar or array context? There are a few different versions of glob available and you need to specify if you need one other than the built in one. Wildcards are what glob was made for but make sure you understand which metacharacters you are using. Have a look at File::Glob and another look at the replies you have already gotten.
In reply to Re^2: Extracting files from .7z using Perl
by Lotus1
in thread Extracting files from .7z using Perl
by zarath
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |