/* check for duplicate declaration */
pad_check_dup(name, len, is_our ? pad_add_OUR : 0,
- (PL_curstash ? PL_curstash : PL_defstash));
+ (PL_curstash && !strEQ(name,"$_") ? PL_curstash : PL_defstash));
/* allocate a spare slot and store the name in that slot */