Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/env perl -l
    
    ...
            join '', map $code{substr $_[0], $_*3, 3}, 0..length($_[0])/3-
    +1
        }
    }
    
  2. or download this
    ATGCCCGTAC => MPV
    GCTTCCCAGCGC => ASQR
    
  3. or download this
    sub f {
        state $static_var = ...
    
        ... do something with $static_var here ...
    }
    
  4. or download this
    {
        my $static_var; BEGIN { $static_var = ... }
    
        sub f { ... do something with $static_var here ... }
    }
    
  5. or download this
    {
        my $static_var; BEGIN { $static_var = ... }
    ...
    
        sub g { ... do something with $static_var here ... }
    }