Help for this page

Select Code to Download


  1. or download this
        function initMemory() {
            memory.counter = 0;
        }
    ...
        function printCounter() {
            log("Current count is " + memory.counter);
        }
    
  2. or download this
    #!/usr/bin/env perl
    
    package ReportingHandler;
    ...
        $jsh->call('incCounter', 23);
        $jsh->call('printCounter');
    }
    
  3. or download this
    package PageCamel::Helpers::JavaScript;
    #---AUTOPRAGMASTART---
    use 5.030;
    ...
    }
    
    1;
    
  4. or download this
    First run
    DEBUG: Current count is 0
    DEBUG: Current count is 42
    ...
    Second run
    DEBUG: Current count is 42
    DEBUG: Current count is 65