in reply to
Failed match not stored
In list context a failed match returns an empty list.
Naked blocks are fun! -- Randal L. Schwartz, Perl hacker
Comment on
Re: Failed match not stored
Replies are listed 'Best First'.
Re^2: Failed match not stored
by
BillKSmith
(Monsignor)
on Apr 08, 2025 at 13:42 UTC
Thanks for the simple answer. The original problem was more subtle than my example, but in both cases, I failed to recognize the list context.
Bill
[reply]
In Section
Seekers of Perl Wisdom