in reply to Global symbol requires explicit package..

At line 4 you use $lim, and it isn't declared anywhere with my

Also at line 4, you have a strange word linux which isn't a keyword and isn't defined as a sub anywhere either. You probably want to put quotes around that to make it a string.