Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/perl
- use strict;
- use warnings;
- $data_base = 'dbi::mysql::test_db';
- $db_user = 'some_user';
- $db_pw = 'password';
- #!/usr/bin/perl
- use strict;
- use warnings;
- use DBI;
- require'/include/config.pl';
- $param1 = $data_base;
- $param2 = $db_user;
- $param3 = $db_pw;
- #! /usr/bin/env perl
- use 5.10.0;
- use warnings;
- our $variable;
- require 'include.pl';
- say "The value of $foo is $foo";
- $foo = "I am foo (honest!)";
- 1;
- The value of $foo is I am foo (honest!)
- #! /usr/bin/env perl
- use 5.10.1;
- use warnings;
- require "config.pl";
- my $password = get_password();
- my $account = get_account();
- use 5.10.1;
- use warnings;
- sub get_password { return "swordfish" );
- sub get_account { return "some_user" };
- sub get_db { return "database_name" };
- 1;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement