But not if you use /g, as /g acts quite differently in scalar and in list context.
In reply to Re^3: Perl oddities by Anonymous Monk in thread Perl oddities by brian_d_foy