I need to change the value of the variable $error in another file say "file2.pl".
print "after $error \n"; # This should print 20. How can I acheive this?
You valuable suggestions will be of great help. Basically I want the value of a variable to be changed in a file and the changed value should get reflected in the file from which the former file is executed.