Quote:
Originally Posted by KevinADC
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
|
wah! eh... can explain in detail? sorry about that. my knowledge in perl is very litmited.