1
# ruby -wc says syntax ok
2
# ruby -w says blah.rb:2: undefined local variable or method `index' for main:Object (NameError)
3
if index < 0 and $VERBOSE
4
$stderr.puts "warning: index is a negative number"
6
$stderr.puts "index value: #{index.inspect}"
7
$stderr.puts "array state: #{array.inspect}"