Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: Repeating Code - there has GOT to be a better way!

by moritz (Cardinal)
on Mar 31, 2010 at 17:17 UTC ( #832095=note: print w/ replies, xml ) Need Help??


in reply to Repeating Code - there has GOT to be a better way!

and each file contains a hash called <name>Cmd.

So you either need symbolic references, or (preferred) a hash containing references to all these hashes, and then simply loop over <name> and look into that hash.

Perl 6 - links to (nearly) everything that is Perl 6.


Comment on Re: Repeating Code - there has GOT to be a better way!
Download Code
Re^2: Repeating Code - there has GOT to be a better way!
by jedikaiti (Friar) on Mar 31, 2010 at 17:34 UTC

    Is this going to require Perl 6? I ask because I'm on 5.10.1.

    Kaiti
    Swiss Army Nerd
      Nope, works fine with Perl 5, and has nothing to do with my signature :-)
      Perl 6 - links to (nearly) everything that is Perl 6.

        Ahh, I did not realize that was part of your sig. :-)

        Thanks!

        Kaiti
        Swiss Army Nerd

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (11)
As of 2014-09-20 14:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (159 votes), past polls