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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T12:16:51+00:00 2026-05-23T12:16:51+00:00

Guys perl is not as easy i thought its so confusing thing.I just moved

  • 0

Guys perl is not as easy i thought its so confusing thing.I just moved to operators and I wrote some codes but I am unable to figure it out how the compiler treating them.

$in = "42" ;

$out = "56"+32+"good";

print $out,;

The output for above code is 88 and where does the good gone? and Now lets see the other one.

$in ="42";

$out="good52"+32;

print $out ;

and for these the output is 32. The question is where does the good gone that we just stored in $out and the value 52 between the ” “why the compiler just printing the value as 32 but not that remaining text.And the other question is

$in=52;

$in="52"; 

both doing the same work “52” not working as a text . becuase when we add “52”+32 it gives as 84. what is happening and

$in = "hello";

$in = hello; 

both do the same work ? or do they differ but if i print then give the same output.Its just eating up my brain.Its so confusing becuase when “52” or 52 and “hello” or hello doing the same job why did they introduce ” “.I just need the explaination why its happening for above codes.

  • 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-23T12:16:51+00:00Added an answer on May 23, 2026 at 12:16 pm

    If you put:

    use strict;
    use warnings;
    

    At the top of your script, you would get warnings such as:

    Argument "good" isn't numeric in addition (+) at ...
    Argument "good52" isn't numeric in addition (+) at ...
    

    Perl automatically reassigns a string value to numeric, if possible. So “42” + 10 actually becomes 52. But it cannot do that with a proper string value, such as “good”.

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

Sidebar

Related Questions

It is obviosly some Perl extensions. Perl version is 5.8.8. I found Error.pm, but
Guys I am trying to pass some data to my typeahead form, but for
Guys Below is my Script but It is not working can anyone tell why???
guys am having some troubles with running out of memory when displaying an animation
Guys In node.js, mongolian or mongo-native is not supported group function? mongo-native code, var
I'm pretty new to perl, but so far got to do pretty much everything
Hey guys i am trying to install the dropbox-api onto my suse 11.4 but
Is there any robust XSLT2.0 processor for Perl? I just tried out XML::LibXSLT and
Guys i am new to programming and i am really not aware of how
Guys can you suggest me any software who have some similarities with Microsoft's SQL

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.