Help for this page

Select Code to Download


  1. or download this
    $self->{n} = sub {
       my ($self) = @_;
    ...
       $self->do_n2();
       return $rv;
    }->();
    
  2. or download this
    #!/usr/bin/perl -w
    use strict;
    ...
    my $test = Test->new();
    print($test->n,  "\n");  # 3
    print($test->n2, "\n");  # 4