>>I thought that by being declared inside [- -], the subroutine would be
>>recompiled on every request, thus losing any reference to @fields.
>>
No, the reference is not lost, so what Angus wrote about closures  was
exactly right.

You should simply pass in the @fields as parameter to your sub or don't
declare it with my.

Gerald


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to