Think about Loose Coupling | |
PerlMonks |
Re: backwards compatible 'die $obj' (grep.metacpan.org)by LanX (Saint) |
on Sep 30, 2021 at 22:42 UTC ( [id://11137150]=note: print w/replies, xml ) | Need Help?? |
FWIW: this query on https://grep.metacpan.org https://grep.metacpan.org/search?q=use%5Cs%2Boverload&qd=%5Cb%28Carp%7CThrow%7CDie%7CTry%7CCatch%7CException%7CError%29&qft=&qci=on lists over 30 potential distributions named \b(Carp|Throw|Die|Try|Catch|Exception|Error) and including use\s+overload I didn't link directly to the query to avoid unnecessary traffic. grep.metacpan still seems to be work in progress, it didn't refresh automatically for me and I had to reload. It's also listing dozens of empty result pages. Not all hits are valid, I couldn't narrow it down yet to only those overloading '""' explicitly, because a) perl has many q("") expressions and b) they need to be on the same line for the query. I guess at most half of those hits are valid, but refining the search with the API gives a powerful tool to find valid modules. :)
Cheers Rolf
In Section
Seekers of Perl Wisdom
|
|