Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

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

by almut (Canon)
on Apr 01, 2010 at 07:01 UTC ( #832221=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl
    
    ...
    
    use Data::Dumper;
    print Dumper \%cmds;
    
  2. or download this
    $ cat *Cmd.pm ; ./832111.pl 
    %barCmd = (     # barCmd.pm
    ...
                         'FOO' => 42
                       }
            };
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://832221]
help
Chatterbox?
[Tux]: o/

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (7)
As of 2017-10-19 08:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My fridge is mostly full of:

















    Results (252 votes). Check out past polls.

    Notices?