Re: baffled by while conditional

2001-06-01 Thread Jeff Pinyan
On Jun 1, [EMAIL PROTECTED] said: >$i = 1; >$power = 1; > >print "Input a number:\n"; >chomp ( $x = ); > >print "Input the value you want the number raised to\n"; >chomp ( $y = ) ; > >while ( $i<= $y ) { > $power *= $x; > ++ $i; >} This loop is basically a for-loop in extende

baffled by while conditional

2001-06-01 Thread mikemckee
Greetings, This unenlightened neophyte finds that this problem is beyond his humble understanding and seeks guidance from those more wise in the mysterious ways of Perl. The following short program was offered for this one's edification but proves beyond his grasp. #1/usr/bin/perl -w #exercis