ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
tip   SiteMap shows list of All Categories in this site.
Google
 
Categories  >>  Software  >>  Scripts  >>  CGI Perl
 
 


 

 
 PHP interview questions  PHP Interview Questions
 ASP interview questions  ASP Interview Questions
 CGI Perl interview questions  CGI Perl Interview Questions
 JavaScript interview questions  JavaScript Interview Questions
 VB Script interview questions  VB Script Interview Questions
 JSP interview questions  JSP Interview Questions
 Shell Script interview questions  Shell Script Interview Questions
 Python interview questions  Python Interview Questions
 Tcl interview questions  Tcl Interview Questions
 Awk interview questions  Awk Interview Questions
 AJAX interview questions  AJAX Interview Questions
 Ruby on Rails interview questions  Ruby on Rails Interview Questions
 Scripts AllOther interview questions  Scripts AllOther Interview Questions
Question
How do you debug a Perl scripting ( at the compile time
error or run
time error)  in Unix environment ?

 Question Submitted By :: Guest
I also faced this Question!!     Rank Answer Posted By  
 
  Re: How do you debug a Perl scripting ( at the compile time error or run time error) in Unix environment ?
Answer
# 1
by using strict and warnings, or by putting some print 
statements
 
Is This Answer Correct ?    0 Yes 2 No
Sirisha
 
  Re: How do you debug a Perl scripting ( at the compile time error or run time error) in Unix environment ?
Answer
# 2
#! /usr/bin/perl -d
 
Is This Answer Correct ?    1 Yes 0 No
Manohar
 
 
 
  Re: How do you debug a Perl scripting ( at the compile time error or run time error) in Unix environment ?
Answer
# 3
we can also use -c and -d switches to debug our perl scripts
ex:
perl -c sample.pl (for compilation errors)
perl -d sample.pl (for debugging the code line by line)
 
Is This Answer Correct ?    0 Yes 0 No
Kuldip Singh Behal
 
  Re: How do you debug a Perl scripting ( at the compile time error or run time error) in Unix environment ?
Answer
# 4
For debugging perl scripting u can use 
1. diagnostic modules - which  can help us isolate and
understand problems with our code.

EX- use warning, use strict, use diagnostics 

2.perl command line switches - u can create test programm
using the perl command line.

Ex-i) #!user/bin/perl -w
or on the command line like this

>perl -w program.plx

ii) -e = it tells the perl not to load and run a program
file but to run the text following -e as a program.

 > perl -e "print \"hello World \n";" 

iii)-c = stops perl from running your program instead ,al it
does is check that code can be complied as valid perl.
its a good way to quickly check that a program has no
glaring syntax errors.
> perl -ce 'print "hello,world\n";'
and so on it will available Google u can search ........
3. debugging techniques and perl de-debugger - how to remove
the problems that we've found.

 Using debugger
> perl -d filename.plx
 
Is This Answer Correct ?    0 Yes 0 No
Hemalata
 

 
 
 
Other CGI Perl Interview Questions
 
  Question Asked @ Answers
 
i have a folder called 'error' and in that, i have error log files which are generated by the build, now i want to findout the string 'error' from each log file and that error has to be copied into the another file called 'analysis'. how do you do this in perl? HP4
How do you open a file for writing?  4
What arguments do you frequently use for the Perl interpreter and what do they mean?  1
Write a script for 'count the no.of digits using regular expressions in perl.. AppLabs4
When would you not use Perl for a project?  1
How to find out the version of PERL being installed on your LINUX machine. Mind-Tree3
What does the command "use strict" do and why should you use it? TCS2
Why do you program in Perl?  1
What is the difference between chop & chomp functions in perl? Cap-Gemini4
What elements of the Perl language could you use to structure your code to allow for maximum re-use and maximum readability?  1
Name an instance where you used a CPAN module? TCS3
how to search a unique pattern in a file by using perl hash map function ??? plz answer me  2
What do the symbols $ @ and % mean when prefixing a variable?  1
What?s your favorite module and why?  1
What is the Common Gateway Interface?  1
I have created a CGI-based page,after entering all the values in to the fields, How to get the output on the web browser using Perl  4
What purpose does each of the following serve: -w, strict, - T ?  2
Write a simple regular expression to match an IP address, e-mail address, city-state-zipcode combination.  4
how to install a package in perl ????  1
what r the different type of function in perl ??? Symphony1
 
For more CGI Perl Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com