Perl Debug Stepping Answering Questions


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Perl Debug Stepping Answering Questions
# 1  
Old 06-08-2014
Perl Debug Stepping Answering Questions

I am new to perl and want to get a little better understanding of debugging code in perl. I have a perl script that has questions to be answered like:
Code:
he following PERL modules are recommended:
	Crypt::DES
	Crypt::PasswdMD5
	IO::Pty
	Net::Write::Layer2
	String::CRC32

Attempt to install the above modules? [yes]

So what I have been doing is using:
Code:
perl -w -d blah.pl

and simply stepping through each line in the code. I use bash and frequently use:
Code:
bash -x blah.sh

to watch the code execute line by line, answering any questions that come into my path. So naturally my question is how to do I do that with perl?

---------- Post updated at 10:43 AM ---------- Previous update was at 09:54 AM ----------

disregard question, I figured it out in that it was taking to long to get to the question in the script when I was stepping through each line because the script calls other pm and etc.

---------- Post updated at 10:43 AM ---------- Previous update was at 10:43 AM ----------

disregard question, I figured it out in that it was taking to long to get to the question in the script when I was stepping through each line because the script calls other pm and etc.

Last edited by metallica1973; 06-08-2014 at 11:01 AM..
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Debug perl script

Hi, I am trying to get squid up and running using a redirector process, and every time I try to load a web page, squid fails miserably. Can some one with perl and squid knowledge take a look at these codes and tell if something is wrong here. #!/usr/bin/perl # $| = 1; @endings = qw/... (0 Replies)
Discussion started by: jamie_123
0 Replies

2. Shell Programming and Scripting

Logging perl and shell debug mode.

I have a shell program which calls a perl program. I am running the shell program with command; $ ksh -x <prog_name> Inside the shell program, I am calling perl with warnings. I want to capture the entire output as it comes on screen. The command I tried is: $ ksh -x... (1 Reply)
Discussion started by: som.nitk
1 Replies

3. Shell Programming and Scripting

perl: a way to see a sub code in debug mode: perl -de 0 ?

Is there a way to see or print a sub code? Sometime a sub could be already defined, but in the debug mode (so, interactively) it could be already out of screen. So, I would think about a way to check if the sub is defined (just 'defined' is not a problem) and how it is defined. Also, if... (4 Replies)
Discussion started by: alex_5161
4 Replies

4. Solaris

stepping through newfs

On a RAID-5 solaris 9 server, we replaced a bad disk. Upon boot up, a mount point failed: vxvm:vxvol: ERROR: Volume IQ_Staging is not startable; some subdisks are unusable and the parity is stale With Sun tech support, we tried vxvol start and vxvol resync, but it remained... (3 Replies)
Discussion started by: abstractrick
3 Replies

5. Shell Programming and Scripting

PERL: NET::FTP..>Debug Messages

HI All, NET::FTP->new($server, DEBUG=>1); I need to get all the Debug Messages in an array or a file.... Please suggest!! (0 Replies)
Discussion started by: angad.makkar
0 Replies

6. Linux

Stair stepping

Is there a command line flag to lpr or a utility similar to the Unix 'xtod' command to fix stair stepping when printing? Under Unix I would: # cat textfile | xtod | lp -d lineprinter Anything like that for linux? Thanks (1 Reply)
Discussion started by: lochraven
1 Replies

7. Shell Programming and Scripting

strange net::SFTP Perl module debug entry

I installed Net::sftp on a solaris 8 server and I am able to successfully transfer files to the remote server. I am running the command out of a script with debug=1 on so I can see the verbose output. The last two lines of the debug output show it couldn't fsetstat, but I don't know what that... (2 Replies)
Discussion started by: csgonan
2 Replies

8. Shell Programming and Scripting

Perl questions - more

More questions for Perl on Windows (again I apologize its on windows... ) 1. How can I check free disk space on a drive in windows using perl command in a script? 2. How can I check processes running using perl command (as I would normally be able to see in task manager for example) 3. I... (7 Replies)
Discussion started by: frustrated1
7 Replies

9. Shell Programming and Scripting

what's the debug command for perl scripts

Hi, Can you please let me know if there's any debug command for perl scripts like set -x for shell scripts (2 Replies)
Discussion started by: dayanandra
2 Replies

10. Shell Programming and Scripting

Perl: answering automatically to install questions

Hi everybody, I have been looking for an answer to this issue both on google and on the forum, but I couldn't find anything. please help me :eek: As part of an automated (in perl) install of Solaris 9, I would like to be able to answer automaticaly to the question the installer asks.... (2 Replies)
Discussion started by: zaap
2 Replies
Login or Register to Ask a Question