Beefy Boxes and Bandwidth Generously Provided by pair Networks Bob
The stupid question is the question not asked
 
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 musing on the Monastery: (11)
As of 2014-04-17 19:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (454 votes), past polls