From: "matz (Yukihiro Matsumoto)" Date: 2013-09-04T20:55:11+09:00 Subject: [ruby-core:57012] [ruby-trunk - Feature #8859][Rejected] Possibility to declare local varibles like "my" in Perl Issue #8859 has been updated by matz (Yukihiro Matsumoto). Status changed from Open to Rejected If you are proposing to introduce 'my' keyword to the language, there's no chance. Introducing new keyword can cause compatibility problems, so that it should be very beneficial. Otherwise please be concrete. Matz. ---------------------------------------- Feature #8859: Possibility to declare local varibles like "my" in Perl https://bugs.ruby-lang.org/issues/8859#change-41610 Author: bdimych (Dmitry Bolshakov) Status: Rejected 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/