Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Is it possible to get all tetra words with correct starting position using a better code within a loop?

by supriyoch_2008 (Monk)
on Nov 22, 2012 at 08:37 UTC ( [id://1005077]=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl  
    use warnings;
    $pro="ABCDEFGH"; 
    ...
    # To get the last tetra:
     $last=join('',@pro); print"\n $last\n"; # Line 15
    exit;
    
  2. or download this
    Microsoft Windows [Version 6.1.7600]
    C:\Users\x>cd desktop
    C:\Users\x\Desktop>try.pl
    ...
     DEFG  ->Starting at pos 2
    
     EFGH
    
  3. or download this
     Tetra words are:
     ABCD  ->Starting at pos 1
    
    ...
     DEFG  ->Starting at pos 4
    
     EFGH  ->Starting at pos 5
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (8)
As of 2024-04-19 09:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found