Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

How do you debug a Perl scripting ( at the compile time
error or run
time error) in Unix environment ?

Answer Posted / hemalata

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 ?    7 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is Polymorphism in Perl?

970


Elaborate on perl bite-wise operators.

913


What are the logical operators used for small scale operations?

959


Differentiate use and require?

945


Does Perl have reference type?

935


How to add elements in a hash in perl?

926


what are the steps involved in reading a cgi script on the server?

936


How to merge two arrays in perl?

1059


what is Chop & Chomp function does?

993


Explain a tell function in perl?

964


what is the difference between java and cgi?

1076


Explain use of ‘my’ keyword in perl?

937


Explain ivalue?

1006


How can I display all array element in which each element will display on next line in perl ?

932


List the operator used in Perl?

981