Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
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 lurking in the Monastery: (11)
As of 2014-07-22 12:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (113 votes), past polls