Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
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 wandering the Monastery: (7)
As of 2015-07-05 10:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (64 votes), past polls