Require 'strscan' in the file that uses it.