Visa Inc. interview question

When would you use Perl Scripts vs C++?