Steve Lukas writes:

> On the other hand, there is no important reason for it because C<
> 
> for @rray -> $el {}
> if ! @rray {}
> 
> >
> should work. It's short and easy to understand.

But it involves repeating C<@rray> -- which for more complex expressions
(results from function calls, delving deep into very nested data
structures, whatever) could be tedious.  Repetition is certainly poor
style and makes the code more prone to errors being introduced.

Also, it relies on the contents of C<@rray> not being cleared inside the
loop.

Smylers

Reply via email to