Using constants in perl


/ Published in: Perl
Save to your folder(s)

How to use a constant in perl


Copy this code and paste it in your HTML
  1. # constants
  2. use constant ADD_RESULT => 105;
  3. use constant BIND_RESULT => 97;
  4. use constant COMPARE_RESULT => 111;
  5. use constant DELETE_RESULT => 107;
  6. use constant MODIFY_RESULT => 103;
  7. use constant SEARCH_RESULT_DONE => 101;
  8. use constant PROGRAM_NAME => "sun2unboundid.pl";

URL: http://docstore.mik.ua/orelly/perl3/prog/ch31_07.htm

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.