#!/usr/bin/perl srand; print "List of strings: "; @b = ; print "Answer: $b[rand(@b)]";