Beefy Boxes and Bandwidth Generously Provided by pair Networks
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 (Monk)
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?
[ambrus]: Corion: exactly. by pre-forking you avoid that, because you spawn processes from a smaller process that never uses threads and is kept only to spawn things
[ambrus]: (and to wait for the spawned stuff)

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (13)
As of 2017-10-19 15:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My fridge is mostly full of:

















    Results (255 votes). Check out past polls.

    Notices?