Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: Regex's and Multidimensional Arrays

by changma_ha (Sexton)
on Sep 16, 2010 at 04:46 UTC ( [id://860313]=note: print w/replies, xml ) Need Help??


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"; }

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://860313]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (6)
As of 2024-09-16 11:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    The PerlMonks site front end has:





    Results (22 votes). Check out past polls.

    Notices?
    erzuuli‥ 🛈The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.