Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: Should I leave behind beautiful code or readable code?

by mreece (Friar)
on Mar 29, 2007 at 15:18 UTC ( #607287=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my %aliases_for_things = map split(/ /,$_,2), map uc, @somearray;
    return %aliases_for_things;
    
  2. or download this
    return map split(/ /,$_,2), map uc, @somearray; # FIRST and LAST names
    
  3. or download this
    my @labels_and_values = map split(/ /,$_,2), map uc, @somearray;
    return @labels_and_values;
    
  4. or download this
    my @flattened_pairs;
    foreach my $thing (@somearray) {
    ...
      push @flattened_pairs, @pair;
    }
    return @flattened_pairs;
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://607287]
help
Chatterbox?
[Eily]: LanX bless you!
[LanX]: why?
[Eily]: TSJAKKAA looks like a sneeze to me
[LanX]: oh thank you! :)
[Eily]: partly because I read tsj as /t͡ʃ/, don't know if that's supposed to be the case
[LanX]: Yeah I think thats Dutch spelling rule

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (11)
As of 2017-04-24 15:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I'm a fool:











    Results (442 votes). Check out past polls.