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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T22:50:50+00:00 2026-06-13T22:50:50+00:00

I was debugging a perl program on SuSe Linux using perl -d switch. While

  • 0

I was debugging a perl program on SuSe Linux using “perl -d” switch.

While debugging, the program was reporting XYZ variable is not set

How can I set the value of XYZ inside the debugger?

I tried following inside the debugger but not working.

set XYZ=ABC
my $XYZ=ABC
setenv XYZ ABC

I did a bit of google on this. But couldn’t find what I wanted.

  • 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-13T22:50:50+00:00Added an answer on June 13, 2026 at 10:50 pm

    The debug console takes Perl expressions, so you need to quote the value if it is a string.

    You will have to move the program to before the line that throws the error (look at breakpoints, it’s b <line> in the debugger) and then set the value.

    > $XYZ='ABC'
    

    Here’s a good resource: http://obsidianrook.com/devnotes/talks/perl_debugger/

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

Sidebar

Related Questions

Debugging a PHP program, is there any add-on/plug-in for browser which I can view
While debugging and keep pressing F5, if the source code does not exist, eclipse
I got the following error message when debugging a perl script. dumpvar.pl not available
I'm debugging a Perl program started by a bash script. Because the Perl script
One of my pet peeves with debugging Perl code (in command line debbugger, perl
When debugging Java code using Eclipse, for collection variables, I saw the modcount member.
I'm debugging a perl script which looks like this (simplified): #!/usr/bin/perl use strict; use
Are there any free Perl IDEs out there for Windows that have debugging capabilities,
Whilst debugging my code, I came across this interesting scenario with my switch statement
I'm trying to print a recursive data structure in Perl for debugging purposes. Hash

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.