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

  • SEARCH
  • Home
  • 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 7859517
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T21:55:32+00:00 2026-06-02T21:55:32+00:00

When I found Perl’s $^O , I was curious whether there are more variables

  • 0

When I found Perl’s $^O, I was curious whether there are more variables like this, because ^ reminded me of a regular expression. When I enter

print "$(^b)";

it comes up with some numbers:

1000 81 90 91 92 93 100 150 1000

What to these mean? Is this some kind of 0xdeadbeef?

  • 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-06-02T21:55:34+00:00Added an answer on June 2, 2026 at 9:55 pm

    I think you are just printing out the value of $(.

    The real gid of this process. If you are on a machine that supports membership in multiple groups simultaneously, gives a space separated list of groups you are in. The first number is the one returned by getgid() , and the subsequent ones by getgroups() , one of which may be the same as the first number.

    However, a value assigned to $( must be a single number used to set the real gid. So the value given by $( should not be assigned back to $( without being forced numeric, such as by adding zero. Note that this is different to the effective gid ($) ) which does take a list.

    You can change both the real gid and the effective gid at the same time by using POSIX::setgid() . Changes to $( require a check to $! to detect any possible errors after an attempted change.

    Here is the comparison:

    diff <(perl -le 'print "$(";') <(perl -le 'print "$(^b)";')
    1c1
    < 20 20 402 12 33 61 79 80 81 98 100 204 401
    ---
    > 20 20 402 12 33 61 79 80 81 98 100 204 401^b)
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

On http://novosial.org/perl/one-liner/ I found the following two one-liners. The outputs are different because the
I'm reading Programming Perl , and I found this code snippet: sub new {
Are there any Perl equivalents for pygame ? EDIT: I have found SDL and
I found this Perl script while migrating my SQLite database to mysql I was
I found this perl script here which seems will work for my purposes. It
I found this perl script online but I don't know how to use it.
I found a possible bug in perl's closures and $1 regexp variables. Simply, they
I'm venturing to read a code in Perl and found the following regular expressions:
I've found a few related questions, like Python vs. Perl (now deleted) and Is
I found this piece of code in perl system(zip $ZIP_DEBUG -r -9 itvlib.zip $include

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.