(Randal L. Schwartz) schreef: > And I came up with this: > > $variable ||= 0; # all false values become 0 > $variable &&= 1; # all true values become 1
How about this: ($variable ||= 0) &&= 1 ; or ($variable &&= 1) ||= 0 ; depending on whether you expect $variable to be false or true. -- Affijn, Ruud "Gewoon is een tijger." -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>