calling perl? ewww... there must be a cleaner way methinks.