"my" is used to create lexically scoped variables, ie local variables that get destroyed as soon as you reach the closing braces of the block where they were created.
Normally without any modifier perl creates global variables, you can specifically create them using "our". There are also dynamic variables ("local"), which act like "my", but can be used by functions called within the block.
Correct me if i am wrong as i haven't done much perl lately...
|