Re: Cookies - Basic Perl

2012-12-11 Thread Alex Ahn
Thank you all for the input on how to resolve to problem with the second loop. Alex On 12/11/2012 5:00 PM, Shawn H Corey wrote: On Tue, 11 Dec 2012 16:47:15 -0500 Alex Ahn wrote: I have a problem with a certain script, as a beginner. #!/usr/bin/perl -w # # Cookie Monster $cookie

Cookies - Basic Perl

2012-12-11 Thread Alex Ahn
I have a problem with a certain script, as a beginner. #!/usr/bin/perl -w # # Cookie Monster $cookie = ""; while ( $cookie ne 'cookie') { print 'Give me a cookie: '; chomp($cookie = ); } print "Mmmm. Cookie.\n"; while ( $cookie ne 'cookie') { print 'Give me another cookie: '; chomp($cookie =