Last question on this, but, is there anything I should be aware of if I code the Fred prog like this :
#!perl -w $Add = 4; $Mul = 2; $Sub = 6; $Div = 2; $Append = 5; $fred = 4; print "Fred is now : $fred \n"; $fred += $Add; print "Add 4 to Fred : $fred \n"; $fred *= $Mul; print "Multiply by 2 : $fred \n"; $fred -= $Sub; print "Subtract 6 : $fred \n"; $fred /= $Div; print "Divide by 2 : $fred \n"; $fred .= $Append; print "Append 5 to Fred : $fred \n"; -----Original Message----- From: LoBue, Mark [mailto:[EMAIL PROTECTED] Sent: 27 June 2003 00:51 To: 'Derek Byrne'; '[EMAIL PROTECTED]' Subject: RE: Re : Compilation Errors > -----Original Message----- > From: Derek Byrne [mailto:[EMAIL PROTECTED] > Sent: Thursday, June 26, 2003 4:44 PM > To: 'LoBue, Mark'; Derek Byrne; '[EMAIL PROTECTED]' > Subject: RE: Re : Compilation Errors > > > Oopsie - just saw my own mistake, forgot to add the ; at the > end of the line > preceding the last print.. Doh! > Thank you Mark, just tried it again, and it works without the > '' surrounding > the 5.. to be proper, should it have the ''? > Perhaps perl is doing that for you also, it is just so smart, since the . is a string operator, it converts both arguments to strings. -Mark ************************************************************************ Meteor web site http://www.meteor.ie ************************************************************************ -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]