in reply to Re: Re: pattern matching
in thread pattern matching

I guess you're right... If you're using my to declare it immediately beforehand, push is the same as assignment.

I don't know the use for @users either, but the code snippet above is a non-balanced fragment:

while(<FILE>) { my @users; [snip] if ( [snip] ) { [snip] } # @users is still in scope as we fall off the end....
Therefore, perhaps there is a use for it outside of the window we've been shown.

Looking at it a second time, @users should probably be scoped outside the while, since it is most-likely supposed to be an array of slightly munged lines from the file.

-Blake