> -----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 -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
