in reply to want to create a variable whise value do not get change on recursion
You can store your variable in a file. Start your program with any "invalid" value of the variable, e.g. undef. Then initialize it only if it's value is "invalid".
$temp = read_from_file(); $temp = 1 unless defined $temp; store_to_file($temp);
|
|---|