··········· sylvain wrote:I assume this is the same as the Perl operator, in which case it means,>
> what does the operator |= mean?
> I saw it in a script :
> $output = "png";
> $style = BCS_ALIGN_CENTER;
> $style |= ($output == "png" ) ? BCS_IMAGE_PNG : 0;
> $style |= ($output == "jpeg") ? BCS_IMAGE_JPEG : 0;
if the left hand side isn't true, set it to the right hand side. Useful
if you want to set up defaults.
# If $a isn't set, set it to the string "undefined"
$a |= "undefined";