 |
User since: |
Dec 19, 2000 at 02:42 UTC
(23 years ago) |
Last here: |
Feb 23, 2014 at 22:52 UTC
(10 years ago) |
Experience: |
458
|
Level: | Monk (7) |
Writeups: |
39
|
Location: | new jersey |
User's localtime: |
Oct 02, 2023 at 20:12 -08
|
Scratchpad: |
View
|
For this user: | Search nodes |
|
And here's my list of things to help debug your perl scripts:
- always use -w
- always run with use strict
- Data::Dumper is your friend if you think
that what's getting stored in your variables is not what
you expect it to be. stick a print Dumper($variable);
before and after the point where you think that
your problem is.
- if you think that the flow of your program
is messed up, use the perl debugger: perl -d
- try typing up an email to explain the problem to
a friend. a lot of time, in the process of typing out
an explanation, you'll find an assumption that you were
making is incorrect
what do you call the plural of a perlmonk? here's a list
from the CB the other night:
- a .. of monks
- a LoL of monks
- a hash of monks
- a glob of monks
- a pod of perlmonks
- a hack of monks
- a funk of monks
- a package of monks
- a pack of perlmonks
- a gaggle of perlmonks
- a conflict of monks
- a flock of monks
- school o' monks
- module of monks
- a Pack of JAPH's
- an array of perlmonks
(with thanks to chipmunk, ichimunki, ybiC, boo_radley,
tilly, Petruchio, Trinary, & merlyn, a, crazyinsomniac)
(/msg me with complaints or additions to the list)
|