-
Ultimate Member
PEARL and script debugging question
Where can I find some debugging scripts for Pearl?
Ok It's not me that needs it.. My cousin needs to debug some pearl on his co website, wanted to know if you guys would give me some info to relay.. Btw,, he is fluent in a lot of software (engineering) just not pearl i guess, so just answer this as though your talking to an engingeer,, hahaha so he can understand it.. not like your talking to a layman.. 
Thanks guys.. I owe ya!
-
I use perl a little, but am not very good at debugging. 
You may want to see if your friend is willing to post the code and tell us what is happening and what is supposed to happen.
izzy
[This message has been edited by izzzy12k (edited 08-13-2001).]
-
Ultimate Member
thanks izzy I'll send him a note,,
-
Ultimate Member
here is a little tidbit,,
The best way to debug
is to use lots of print
"It has come till here 1"; for command line scripts and
use CGI;
$q = new CGI;
print $q->header;
print "It has come till here 1";
for cgi scripts
-
Senior Member
What about the debugger for perl? I believe it is -w option for perl. It prints out warning messages for common errors. also you can use strict to check you variables. Another good practice is to check all returns with an or die"Your comment here"
When I was learning (actually I still am) perl this site was a great help.
Banti
[This message has been edited by Banti (edited 08-14-2001).]
-
yes, 'perl -w script.pl' works very well, i use it a lot.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
New Security Features Planned for Firefox 4
Another Laptop Theft Exposes 21K Patients' Data
Oracle Hits to Road to Pitch Data Center Plans
Microsoft Preps Array of Windows Patches
Microsoft Nears IE9 Beta With Final Preview
Simplified Analytics Improve CRM, BI Tools
Android Passes RIM as Top Mobile OS in 2Q
VMware Updates Hyperic System Management
File Monitoring Key to Enterprise Security
LinkedIn Snaps Up SaaS Player mSpoke
|
Bookmarks