Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: Why am I getting the result only from 1st substring and not from substring 2 and 3 in using the do-until loop with while loop inside it?

by Eliya (Vicar)
on May 18, 2012 at 12:04 UTC ( #971290=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $offs = 0;
    while (my $fm= substr($DNA1, $offs, 4)) {
        $offs += 4;
        ...
    }
    
  2. or download this
    for (my $offs=0; my $fm=substr($DNA1, $offs, 4); $offs+=4 ) {
        ...
    }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://971290]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (8)
As of 2015-07-06 10:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (71 votes), past polls