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 =
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 = "";
>
> while ( $cookie ne 'cookie') {
> print 'Give me a cookie: ';
> chomp($cookie = );
> }
>
> print "Mmmm. Cookie.\n";
>
Hi,
On Tue, Dec 11, 2012 at 10:47 PM, Alex Ahn wrote:
> 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";
>
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 = "";
whi