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 6702471
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T07:03:29+00:00 2026-05-26T07:03:29+00:00

Context: ActiveState Perl: This is perl 5, version 12, subversion 4 (v5.12.4) built for

  • 0

Context: ActiveState Perl:
This is perl 5, version 12, subversion 4 (v5.12.4) built for MSWin32-x86-multi-thread

>perl -Mbignum=l -e "print 2 ** 32"
4294967296

>perl -Mbignum=l -e "print -2 ** 32"
-4294967296

Then I got to thinking, maybe I need to delimit the negative two.

>perl -Mbignum=l -e "print (-2) ** 32"
-2

Finally figured it out.

>perl -Mbignum=l -e "print ((-2) ** 32)"
4294967296

So how come all the parentheses?

  • 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-26T07:03:29+00:00Added an answer on May 26, 2026 at 7:03 am

    This thread covers both of your questions (you have to go down a little to find the part corresponding to print (-2) ** 32).

    Summarizing what is there:

    • For your first issue (perl -Mbignum=l -e "print -2 ** 32"): in Perl exponentiation has higher precedence than unary negation.

    • For the second issue (perl -Mbignum=l -e "print (-2) ** 32"): the key is the following warning in the documentation for print.

      Also be careful not to follow the print keyword with a left parenthesis unless you want the corresponding right parenthesis to terminate the arguments to the print–interpose a + or put parentheses around all the arguments.

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

Sidebar

Related Questions

Context: .NET 3.5, VS2008. I'm not sure about the title of this question, so
Context: We are building a framework for rapid delivery of WPF applications. This framework
I am using a page with ui:composition use on it like this <?xml version='1.0'
For XSLT processing, I am trying to use XML::LibXSLT. I am having ActiveState Perl
Context I want to make this call via reflection instanceOfEventPublisher.Publish<T>(T eventInst); When I call
Context is important for this question . So context first. I learned Symfony 3
Context We have this application, using about 60 coding projects. We have several products
Context Using Ruby I am parsing strings looking like this: A type with an
(Context: I'm trying to monitor a long-running process from a Perl CGI script. It
Context: I'm in charge of running a service written in .NET. Proprietary application. It

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.