names_to_numbers.rb: fix bug in non-glob operation
[cmccabe-bin] / names_to_numbers.rb
index 4538976..fe03ff9 100755 (executable)
@@ -59,7 +59,7 @@ class MyOptions
       opts.num_digits > 0
     raise "must specify an extension" unless opts.extension != nil
     if (opts.glob == nil) then
-      opts.glob = "*.#{$opts.extension}"
+      opts.glob = "*.#{opts.extension}"
     end
     return opts
   end