Advertisement
Guest User

Untitled

a guest
Apr 28th, 2016
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.76 KB | None | 0 0
  1. #!/usr/bin/perl
  2. use strict;
  3. use warnings;
  4.  
  5.  
  6. $data_base = 'dbi::mysql::test_db';
  7. $db_user = 'some_user';
  8. $db_pw = 'password';
  9.  
  10. #!/usr/bin/perl
  11. use strict;
  12. use warnings;
  13. use DBI;
  14.  
  15. require'/include/config.pl';
  16.  
  17. $param1 = $data_base;
  18. $param2 = $db_user;
  19. $param3 = $db_pw;
  20.  
  21. #! /usr/bin/env perl
  22. use 5.10.0;
  23. use warnings;
  24.  
  25. our $variable;
  26.  
  27. require 'include.pl';
  28. say "The value of $foo is $foo";
  29.  
  30. $foo = "I am foo (honest!)";
  31.  
  32. 1;
  33.  
  34. The value of $foo is I am foo (honest!)
  35.  
  36. #! /usr/bin/env perl
  37. use 5.10.1;
  38. use warnings;
  39.  
  40. require "config.pl";
  41.  
  42. my $password = get_password();
  43. my $account = get_account();
  44.  
  45. use 5.10.1;
  46. use warnings;
  47.  
  48. sub get_password { return "swordfish" );
  49. sub get_account { return "some_user" };
  50. sub get_db { return "database_name" };
  51.  
  52. 1;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement