in reply to What does this mean ?
use vars is used to declare package global variables. Please refer to Variable Scoping in Perl: the basics for further infos. There are many Tutorials here that can help you starting with Perl.
Ciao, Valerio