Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    ...
            print "$var\n";
        }
    }
    
  2. or download this
    Variable "$var" will not stay shared at sub_in_sub.pl line 23.
    calling outter from main:
    ...
      outter: 0
        calling inner, should increment 0 -> 1
        inner: 2 -> 3