in reply to Perl Tk on a Mac

It seems Tk tries to compile its own libpng if it can't find an existing one. The libpng needs some header files that don't exist on the modern macos, so the installation fails.

By running

brew install pkgconf

I installed pkg-config which made it possible for Tk to find libpng and everything worked.

I also installed

brew install libpng
but I'm not sure it's needed (didn't have enough time to experiment with it).

(Read all the replies here and links from them elsewhere to get the context).

map{substr$_->[0],$_->[1]||0,1}[\*||{},3],[[]],[ref qr-1,-,-1],[{}],[sub{}^*ARGV,3]