Define a static variable in Perl, just define a variable in the beginning of the program. The static method is a different subroutine, but pay attention to it, do not use "->" when used. Do not use any Instance Variable when defined.