http://qs321.pair.com?node_id=860313


in reply to Regex's and Multidimensional Arrays

hi Mad Mac .... I think this will help you.

#! /usr/bin/perl use strict ; use warnings; my @days=qw(mon tues wed thurs fri sat sun); my @cols=qw(red orange yellow green blue indigo violet); foreach (@days ){ tr/e/E/; print "$_\n"; } foreach (@cols){ tr/e/E/; print "$_\n"; }