Hello All, Is there anything as 'static variables' in Perl?
I have a "utilities.pl" file which has functions commonly used in other perl programs. One of these function needs to create a temporary file in the current directory, process it and then delete it. Since this function can be called by multiple programs at the same time, its necessary that the name of the temporary file generated each time is different. I can do something like suffixing the filename with timestamp etc, but would like to know if there can be a static variable defined in this function which will be incremented each time a new file is created. Thanks, Dhanashri