Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

Hi Monks,
I am reviewing a script and I found a line of code which I could not understand. Can anyone explain the following line of code?.
$errn = $out >> 8;

thanks.

Replies are listed 'Best First'.
Re: What is it doing?
by Corion (Patriarch) on Dec 01, 2008 at 08:48 UTC
Re: What is it doing?
by Bloodnok (Vicar) on Dec 01, 2008 at 08:55 UTC
    Errrm, shifting $out right by 8 bits - probably removing any signal number from the result of a call to system()...see system...or, more pertinently Shift Operators

    Update

    What use is a link to the call, the OP asked about the op, so added link to that as well.

    A user level that continues to overstate my experience :-))