Connie Chan wrote:
>
>> unlink($_) for @$filelist ;
>
>
> Heehee...... Thanks a lot !!! I really don't know for loop can be writtern
> in this way....
[trwww@misa trwww]$ perldoc -f unlink
unlink LIST
unlink Deletes a list of files. Returns the number of
files successfully deleted.
you can write it like that, but unlink() works in list context.
unlink( @$filelist ); will work fine, no need to loop.
Understanding the concept of the list will reduce the length of your code
by 20%. Probably more.
Todd W
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]