Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Answering Machine scripting engine

by mandog (Curate)
on Jul 26, 2004 at 02:46 UTC ( #377342=note: print w/ replies, xml ) Need Help??


in reply to Answering Machine scripting engine

A few quick, random and superficial thoughts:

  • IMNSHO, The &init style is somewhat deprecated in favor of init()
  • use Common looks like an private library
  • my %menuHash; look like semiStudlyCaps which is deprecated in In Chapter 24 of The Camel
  • In perl's before 5.8 overiding the die handler is supposed to be dangerous, (see the Camel) CGI scripts do it to allow errors to the browser. You can achieve the same effect by wrapping die. sub mydie{#do stuff; die $_[0];}
  • my $caller =$ENV{CALLER_ID}; How do you know this environment variable is set at this point in your script?
  • $filename ...should perhaps be a $CONSTANT at the top of your file
  • You might look at past flower box discussion


Comment on Re: Answering Machine scripting engine
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (6)
As of 2014-12-20 01:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

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





    Results (94 votes), past polls