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 ''?
-----Original Message----- From: LoBue, Mark [mailto:[EMAIL PROTECTED] Sent: 27 June 2003 00:45 To: 'Derek Byrne'; '[EMAIL PROTECTED]' Subject: RE: Re : Compilation Errors > -----Original Message----- > From: Derek Byrne [mailto:[EMAIL PROTECTED] > Sent: Thursday, June 26, 2003 4:15 PM > To: '[EMAIL PROTECTED]' > Subject: FW: Re : Compilation Errors > > > Just a note - running win2k and perl v5.8.0 (built for > MSWin32-x86-multi-thread). > > -----Original Message----- > From: Derek Byrne > Sent: 27 June 2003 00:13 > To: [EMAIL PROTECTED] > Subject: Re : Compilation Errors > > > Hi All, > Reading through Learning Perl (3rd Ed), and messing around > with Binary > Assignment Operators (2.5.3). > > Code is as follows : > #!perl -w > $fred = 4; > print "Fred is now : $fred \n"; > $fred += 4; > print "Add 4 to Fred : $fred \n"; > $fred *= 2; > print "Multiply by 2 : $fred \n"; > $fred -= 6; > print "Subtract 6 : $fred \n"; > $fred /= 2; > print "Divide by 2 : $fred \n"; > #$fred .= 5 > $fred = $fred . 5 At this point, you are "stringifying" $fred, so this should be: $fred = $fred . '5'; -Mark ************************************************************************ Meteor web site http://www.meteor.ie ************************************************************************ -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
