Please explain more fully what you mean by "global variable"? Fiddler's
Preferences system provides a mechanism for sharing bits of data between Fiddlerscript, extensions, the UI, etc. Or perhaps you're just looking for a FiddlerScript variable, in which case it's just JavaScript, so you'd do something like
var myVariable = 1;
inside the Handlers class.