Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: Translation Substring Error

by kcott (Archbishop)
on Nov 11, 2017 at 07:52 UTC ( [id://1203167]=note: print w/replies, xml ) Need Help??

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 ... }
    }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1203167]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (4)
As of 2024-04-19 17:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found