print $file =~ m/(tgz|tar\.gz)$/i ? qq#
  • $file unpack
  • # : "
  • $file (doesn't;look like a tar archive)
  • "