while (@files) { my $file = shift @files; unlink $file or warn "Can't delete $file: $!\n; }
Boolean context is ubiquitous, so let's give this little brother of list and scalar its due!
In reply to Re: Re: Re: Scalars, Lists, and Arrays
by sierrathedog04
in thread Scalars, Lists, and Arrays
by ton
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |