Help for this page

Select Code to Download


  1. or download this
    use strict;
    my $operator=<STDIN>;
    ...
      $op_map->{'*'}=sub{print $one * $two . "\n"};
      $op_map->{'/'}=sub{print $one / $two . "\n"};
      }
    
  2. or download this
    $op_map->{'camel'}=sub{print "$one is a $two with humps.\n"};