local() is a builtin perl function that defines a global perl variable with a temporary value inside a block of code. For example, "$/" is a global perl variable, you would use local() to temporarily change it's value:
Code:
here $/ has its default value
sub do_this {
local $/ = "\n\n";
.....
}
here $/ has it's default value again