-----Original Message----- > From: Greg London [mailto:[EMAIL PROTECTED] > Sent: Monday, March 07, 2005 11:17 AM > > As for the triple-plus operator ;) > I'd think perl would take x, do a "++" on it, > get 2, and then do the "+1" on it to get three. > But oh well. just won't use that in my code.
No. In Perl (or C), "$x++" => use & then increment, whereas "++$x" => increment & then use. Thus the expression will use the existing value of x (1) to compute the value of y & then increment x itself. -Nilanjan _______________________________________________ Boston-pm mailing list Boston-pm@mail.pm.org http://mail.pm.org/mailman/listinfo/boston-pm