bail("Please install the taglib C++ library first. \nI need the package that has taglib-config") unless system('taglib-config --version > /dev/null') == 0; chomp(my $libver = qx{taglib-config --version}); ... chomp(my $libs = qx{taglib-config --libs}); ... chomp(my $inc = qx{taglib-config --cflags});