From: niall munnelly Date: 2002-06-08T06:29:02+09:00 Subject: big dumb very newbie question hello - i'm not just new to ruby, i'm quite new to programming in general (beyond some massively kludgy shell scripts). i've been rtfming, but haven't found an answer yet, so i'd be most appreciative for any gentle nudges in the right direction. right now i'm working on a little script that will output x number of iterations of a user-defined statement. print "what comment should i use?\n" $enterComment = STDIN.gets $enterComment.chop! print "how many iterations do you want?\n" $enterNumber = STDIN.gets $enterNumber.chop! $total = $randomComment + $enterComment + $protect print $total * $enterNumber the script breaks on this last line, when i attempt to print $total $enterNumber times. printing $total * 10 yields the expected results; printing $enterNumber alone yields the expected result, but i can't get that "print $total * $enterNumber" line to work. help? thanks.... -- yours, niall. .. . . . . . . . . . aleph null. a simple insinuation around silence. see: http://www.vietnambla.com hear: http://radio.vietnambla.com .. .bebox.audio. .. playing now: neil harvey - vs dettinger - sub rosa vs kompakt