[sf-perl] problem use Regexp::Common, "Can't Regexp::Common::FIRSTKEY"...

George Hartzell hartzell at alerce.com
Fri Mar 1 07:39:56 PST 2013


I'm trying to be a good boy and reuse regular expressions from the
Regexp::Common world (ultimately $RE{time}{american}).  I have things
working, but as I was playing around in the debugger I discovered
something "funny".

It seems that any time I try to touch %RE I get an error, sometimes
things Go Badly enough that I end up back at my shell prompt.

It blows up with pretty much the same message in 5.14.2, 5.14.3 and
5.16.2 on a current Mac OS X system.

  (alacrity)[17:26:03]~>>perl -d -e ''
  
  Loading DB routines from perl5db.pl version 1.33
  Editor support available.
  
  Enter h or `h h' for help, or `man perldebug' for more help.
  
  Debugged program terminated.  Use q to quit or R to restart,
    use o inhibit_exit to avoid stopping after program termination,
    h q, h R or h o to get additional info.  
    DB<1> use strict
  
    DB<2> use warnings
  
    DB<3> use Regexp::Common qw(number)
  
    DB<4> x $RE{num}{int}
  0  Regexp::Common=HASH(0x7fad2c02d828)
  Can't Regexp::Common::FIRSTKEY at /Users/hartzell/perl5/perlbrew/perls/perl-5.14.3/lib/5.14.3/dumpvar.pl line 205
  END failed--call queue aborted.
   at -e line 0

This doesn't seem to keep my code from working but it smells funny....

Can anyone shed any light on what's going on?

g.


More information about the SanFrancisco-pm mailing list