Project

General

Profile

Actions

Feature #12114

open

$VERBOSE = true is being ignored

Added by rovf (Ronald Fischer) over 8 years ago. Updated over 8 years ago.

Status:
Open
Assignee:
-
Target version:
-
[ruby-core:74007]

Description

This programm correctly complains about "assigned but unused variable - p"

#!/usr/bin/ruby -w
p=1

However, this one doesn't

#!/usr/bin/ruby
BEGIN {$VERBOSE = true}
p=1

Setting $VERBOSE to true in a BEGIN block should have the same effect as providing it on the command line, but this is obviously not the case.

Actions

Also available in: Atom PDF

Like0
Like0