See recent discussion at die/warn bug in elsif.
In reply to Re: Use of uninitialized value in regexp compilation by ysth in thread Use of uninitialized value in regexp compilation by Win