Help for this page

Select Code to Download


  1. or download this
    my $scalar_ref = \10;
    my $x = ${$scalar_ref}; 
    ...
    
    my $sub_ref = sub {print "hello\n"};
    &{$sub_ref}();
    
  2. or download this
    #setup:
    -------
    ...
     
    &{"color"}();   #grab the subroutine slot for 'color' 
                    #and execute the sub