> How can I pass parameter to unlink function?
>
> Example:
>
> $filelist="*.txt";
> unlink <$filelist>; or unlink <"$filelist"> does not work. :(
unlink glob($filelist);
You may only use <> for globbing with CONSTANTS. With
something where it is clearly visible that you want Perl to glob.
Otherwise you have to use glob() function.
If you are running Windows you might also like Win32::FileOp's
Delete $filelist.
You can get progress and confirmation dialogs with the module.
Jenda
== [EMAIL PROTECTED] == http://Jenda.Krynicky.cz ==
: What do people think?
What, do people think? :-)
-- Larry Wall in <[EMAIL PROTECTED]>
_______________________________________________
ActivePerl mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/activeperl