1.  first ($facility_i<<3) will be left shifted thrice 
2. the above shift result is bit ORed with $priority_i and value is
assigned to $d.
 

ex:
perl -e '$x=4; $d=(($x<<3)|(5)); print $d;'

Prints : 37

Regards,
Rathna.



On Fri, 18 Mar 2005 10:18:55 +0100, Angerstein <[EMAIL PROTECTED]> wrote:
> 
> I have a Line of code I just donīt know waht it does.
> Especialy the underlined section:
> 
> All used vars are scalars.
> 
> my $d = (($facility_i<<3)|($priority_i));
>           --------------
> 
> Its from Net::Syslog syslog.pm line 93.
> 
> Thanks
> Bastian
> 
> --
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> <http://learn.perl.org/> <http://learn.perl.org/first-response>
> 
>

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to