in reply to Re^6: returning to a loop later on
in thread returning to a loop later on

In which way does it "not work" for you? I've run mine with Not_a_Number's corrections — see my updated post — and it works fine for me using ActivePerl 5.6.1 on Win2k.

Replies are listed 'Best First'.
Re^8: returning to a loop later on
by Yoda_Oz (Sexton) on Sep 08, 2006 at 07:04 UTC
    ok. i copy and pasted your updated code. now, i get no errors. however, there is no output whatsoever. nothing happens now... should there be some output?

      How are you running the program?
      What version of Perl are you using?

        im running it "perl output.pl". i dont know which version of perl i was using. what ever comes distributed with mac os x 10.4. i think its 5.8.1-RC3. thats what it says when i type "man perlmacosx".

        updated...
        ive just tried it on a winxp machine with activeperl version 5.8.8 build 819 installed. went into cmd and typed in "perl output.pl" and the same thing happenned. just 1 line of blank and then the program ended.

        update...
        i copy and pasted into notepad in windows rather than copying the file from mac to windows. it works! it must be the way the copy and paste messed up the formatting of the code.