From: "bdimych (Dmitry Bolshakov)" Date: 2013-09-04T14:50:34+09:00 Subject: [ruby-core:57006] [ruby-trunk - Feature #8859][Open] Possibility to declare local varibles like "my" in Perl Issue #8859 has been reported by bdimych (Dmitry Bolshakov). ---------------------------------------- Feature #8859: Possibility to declare local varibles like "my" in Perl https://bugs.ruby-lang.org/issues/8859 Author: bdimych (Dmitry Bolshakov) Status: Open Priority: Normal Assignee: Category: Target version: Hi I think it would be useful to have an analogue of the "my" keyword in Perl e.g. x = 'outer value' p = Proc.new { ... many code here ... my x = 'local value does not affect outer variable' } I know I can declare local variables in the beginning of the block with a semicolon |;x| but imho special keyword would be more handy -- http://bugs.ruby-lang.org/