in reply to Error message when using 'our'
our is not deprecated. It's too new.
our acts like use vars (which is less recent) except that it is lexically scoped
in effect like my. our was introduced in perl version 5.6.0
You should be able to replace the use of our with use vars..