Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: Stupid mistakes I repeatedly make

by doom (Deacon)
on Mar 29, 2005 at 23:04 UTC ( #443294=note: print w/ replies, xml ) Need Help??


in reply to Stupid mistakes I repeatedly make

On the subject of forgetting to use Data::Dumper;, my solution is to use some standard code templates so that I start out with a stack of standard "use" statements

use strict; use warnings; use Carp; $|=1;
Adding use Data::Dumper; to that list sounds like a good idea. I also have the template insert a standard pod framework (with the name of the file filled in automatically).

I do this in emacs, with the newish package called template.el.

And actually I run it using a emacs lisp package that I've been working on: perlnow.el. I've got separate commands for starting work on scripts, OOP modules, proceedural modules and *.t code, all of which use different templates.


Comment on Re: Stupid mistakes I repeatedly make
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://443294]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (8)
As of 2014-12-21 02:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (101 votes), past polls