Connie Chan wrote: > > > unlink($_) for @$filelist ; > > Heehee...... Thanks a lot !!! I really don't know for loop can be writtern > in this way. My complement, why I try to respond something what I knew, > because it sometimes give me some smater ideas on the same stuff. =)
It _could_ also be written as: unlink @$filelist; But if you want good maintainable error checking code it probably _should_ be written as: for ( @$filelist ) { unlink $_ or warn "Cannot unlink $_: $!"; } > > the second nit is that it appears that passing a reference > > to the array seems to be reasonably mo-betta.... YMMV. > > btw, what is YMMV ?! Your Mileage May Vary. In other words you may get different results then those posted. John -- use Perl; program fulfillment -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]