 <p>Your need tells that your strategy is not correct. And even if it worked, your code readability and maintenability will not be good! Anyway, I suggest that you create a function instead of your procedure, which you may call whenever needed and replace the original variable with the output.</p> <p>An Example: </p> <pre><code>Function doStuff ($input){ treat_input; Return output; } $x = doStuff ($×); .... </code></pre> <p>Well, I know you will need to call this function as many times as number of variables you have. But trust me, this is the way that you have to go according to long experience in maintaining scripts.</p>