#!/usr/bin/perl -w foreach $patt (@ARGV) { # Check for a. if ($patt =~ /a/) { print "\tFound an a in \"$patt\".\n"; } }