Help for this page

Select Code to Download


  1. or download this
    sub test {
       my ($x) = shift;
    ...
    }
    
    test(3);  # 1,1,1
    
  2. or download this
    sub test {
       my ($x) = shift;
    ...
    }
    
    test(3);  # 1,2,3
    
  3. or download this
    sub foo {
       my ($x) = shift;
    ...
    }
    
    foo();  # 2,2
    
  4. or download this
    sub foo {
       my ($x) = shift;
    ...
    }
    
    foo();  # 2,1