#!/usr/bin/perl -w undef $/; open IN, "util/cpp_version spl-data.h|" or die "Can't read spl-data.h\n"; $_ = ; close IN; for (/\{\s*SPELL_\w+,\s*"([^"\n"]+)"/sg) { next if /^[a-z]/; # dummy spells start with lowercase print "$_\n"; }