Help for this page

Select Code to Download


  1. or download this
    *p2::func = $func;
    
    ...
    
    our $x = 100;
    func();
    
  2. or download this
    *p2::func = \$func;
    
    ...
    
    our $x = 100;
    $func->();
    
  3. or download this
    #!/usr/bin/perl
    
    ...
    
    our $x = 100;
    func($x);
    
  4. or download this
    #!/usr/bin/perl
    
    ...
    
    our $x = 100;
    func();