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