Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
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 chanting in the Monastery: (9)
As of 2014-08-30 17:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (293 votes), past polls