Help for this page

Select Code to Download


  1. or download this
    my %hash = map {$_ => sub {return "<H1>$_</H1>"} } (1..5); 
    $_ = 'foo';
    print &{$hash{2}};
    
  2. or download this
    my %hash = map {$_ => "<H1>$_</H1>" } (1..5);