concept local variable in category gnuplot

This is an excerpt from Manning's book Gnuplot in Action.
At the present time, gnuplot offers only limited support for scripting. It has control structures (loops and conditionals) but neither data structures[a] nor subroutines—and of course no such thing as local variables! This shouldn’t be a surprise: gnuplot was never intended as a programming environment, and the available scripting support is little more than an ad hoc collection of convenience features, intended to take the tedium out of repeated tasks.
Gnuplot doesn’t have local variables: all variables that are created live in the global session space. This means if you call a script that defines variables, these variables are still part of the session when the script finishes. This may be desirable (because it provides a way to retrieve values from the script), but more often it isn’t. The problem also exists in reverse: if a variable existed in the session before the script was run, then it will have been clobbered afterward.