Help for this page

Select Code to Download


  1. or download this
    my $sub;
    $sub = sub{print"hello\n";return $sub};
    $sub->();
    print "$sub\n";
    $sub->()->();
    
  2. or download this
    # --- Make a lexical block
    {
    ...
    my $x = &hello;
    print "address of hello is <$x>\n";
    &hello()->();