Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW

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?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://971290]
Discipulus if thezip is still around can be interested into How to hide/inhibit the console window when launching a Perl script on Windows?
[Corion]: sierpinski: Yes, but I don't want to write Javascript in a more involved way ;)

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (12)
As of 2017-03-27 19:17 GMT
Find Nodes?
    Voting Booth?
    Should Pluto Get Its Planethood Back?

    Results (321 votes). Check out past polls.