Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

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

by supriyoch_2008 (Scribe)
on Nov 22, 2012 at 08:37 UTC ( #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
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? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (5)
As of 2014-12-21 10:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (104 votes), past polls