Changeset 4218 for lang/perl/Config-Pit

Show
Ignore:
Timestamp:
01/08/08 17:39:53 (5 years ago)
Author:
yappo
Message:

lang/perl/Config-Pit: code golf nized

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lang/perl/Config-Pit/trunk/bin/ppit

    r4216 r4218  
    1212 
    1313({ 
    14     get => sub { 
    15         printf "%s\n", YAML::Dump(Config::Pit::get(shift)); 
    16     }, 
    17     set => sub { 
    18         Config::Pit::set(shift); 
    19     }, 
    20     switch => sub { 
    21         Config::Pit::switch(shift); 
    22     }, 
    23 }->{(shift || '')} || sub { pod2usage } )->(@ARGV[1..2]); 
     14    get    => sub { printf "%s\n", YAML::Dump(Config::Pit::get(shift)) }, 
     15    set    => \&Config::Pit::set, 
     16    switch => \&Config::Pit::switch, 
     17}->{(shift || '')} || sub { pod2usage } )->($ARGV[1]); 
    2418 
    2519__END__