Help for this page

Select Code to Download


  1. or download this
    package Bar;
    use vars qw($COUNT);
    ...
    print "count is ", $Bar::COUNT, "\n";
    $Bar::COUNT++;
    print "count is ", $Bar::COUNT, "\n";
    
  2. or download this
    count is 0
    count is 1