View Single Post
  #4 (permalink)  
Old 09-27-2007, 02:33 AM
lichy lichy is offline
Newbie
 
Join Date: Jun 2007
Posts: 17
Credits: 0
Rep Power: 5
lichy is on a distinguished road
Default

Quote:
Originally Posted by KevinADC View Post
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.
Reply With Quote