Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7590477
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T20:24:40+00:00 2026-05-30T20:24:40+00:00

Can you please provide good explanation about the following perl code snippet. I got

  • 0

Can you please provide good explanation about the following perl code snippet. I got some idea from google but still lots of basic confusion is there. great help if you can provide small notes on it

$exit_value  = $? >> 8;
$signal_num  = $? & 127;
$dumped_core = $? & 128;
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T20:24:42+00:00Added an answer on May 30, 2026 at 8:24 pm

    Quoting The Doc:

    $?

    The status returned by the last pipe close, backtick (“ ) command,
    successful call to wait() or waitpid(), or from the system() operator.
    This is just the 16-bit status word returned by the traditional Unix
    wait() system call (or else is made up to look like it). Thus, the
    exit value of the subprocess is really ($?>> 8 ), and $? & 127 gives
    which signal, if any, the process died from, and $? & 128 reports
    whether there was a core dump.

    >> 8 gives us the higher byte of a 16-bit word.

    & 127 is essentially the same as & 0b01111111, giving out the lower 7-bit part of that word.

    & 128 is the same as & 0b10000000, which is basically checking for the 8th bit of the result.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Without referring to a book, can anyone please provide a good explanation for CRTP
please provide me link of good open source exe which i can call from
can anyone please suggest a good code example of vb.net/c# code to put the
Could someone please provide some good practice to handle exceptions in exception for example
Please I have a problem understanding references in perl . Can anyone provide a
Please provide the suitable codes for online Google Pagerank display, We can not place
please any one can provide me a good example of dotnetnuke module localization....i am
Can someone please provide an example of creating a Java ArrayList and HashMap on
Can anyone please provide a link to download the .NET 3.5 SDK? I checked
What is meaning of ACTIVE in ASP.NET( ACTIVE Server Pages)? Can you please provide

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.