Re: Hash Advancement

2006-09-06 Thread $Bill Luebkert
Jerry Kassebaum wrote: > Thanks for your help, Bill! I ran your code, which worked, which made me > take a different look at my code. > > Sorry, but I didn't give you enough info to spot the problem. Here's the > whole thing: > > > > open(STORAGE, " > > while() { >

Re: Hash Advancement

2006-09-06 Thread Jerry Kassebaum
Oh! I also use the "<>;" to pause output, so things don't scroll off the screen. Output continues when I hit . ___ Perl-Win32-Users mailing list Perl-Win32-Users@listserv.ActiveState.com To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Re: Hash Advancement

2006-09-06 Thread Jerry Kassebaum
Thanks for your help, Bill! I ran your code, which worked, which made me take a different look at my code. Sorry, but I didn't give you enough info to spot the problem. Here's the whole thing: open(STORAGE, "){ $_ =~ /(\w+)/; $sym{$1}++; foreach

Re: Hash Advancement

2006-09-05 Thread $Bill Luebkert
Jerry Kassebaum wrote: > Friends, > > Below is a portion of code which repeats $v ad infinitum when the if > condition is met. How do I break out of the loop? > > foreach $v (keys %sym) { > if($sym{$v}>1) { > print $v; <>; # Here's where it repeats the same thing, rather than > advancing. >

Hash Advancement

2006-09-05 Thread Jerry Kassebaum
Friends, Below is a portion of code which repeats $v ad infinitum when the if condition is met. How do I break out of the loop? foreach $v (keys %sym) { if($sym{$v}>1) { print $v; <>; # Here's where it repeats the same thing, rather than advancing. }