Help for this page

Select Code to Download


  1. or download this
    package __test__;
    
    ...
    diag( "Testing lexical $lexical::VERSION, Perl $], $^X" );
    
    done_testing;
    
  2. or download this
     
    perl /home/lanx/perl/prj/lexical/t/01-use.t
    ok 1 - line numbers are not messed up 
    ...
    ok 7 - lex sub doesn't exist out of scope
    # Testing lexical 0.01, Perl 5.038002, /usr/bin/perl
    1..7
    
  3. or download this
    package lexical;
    
    use v5.22;
    ...
    # yadda yadda ...
    
    1; # End of lexical