Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: Can't use DBD::Oracle if LD_LIBRARY_PATH Not Set In Environment

by Ea (Hermit)
on Feb 07, 2013 at 15:10 UTC ( #1017674=note: print w/replies, xml ) Need Help??


in reply to Can't use DBD::Oracle if LD_LIBRARY_PATH Not Set In Environment

I don't think you absolutely need the DBD::Oracle line. DBI should load the correct module when you connect.

My personal solution has been to hide connection details in a module which always gets installed in The Right Place, has a home for tests and makes scripts clear and concise with subs like this

sub setup_environment { my $server = get_server_name(); for my $env ( %{$environment{$server}} ) { $ENV{$env} = $environment{$server}->{$env}; } return scalar keys %{$environment{$server}}; }
I use it to cache database handles and such. It's not your perfect solution, but it works for me.

Sometimes I can think of 6 impossible LDAP attributes before breakfast.
  • Comment on Re: Can't use DBD::Oracle if LD_LIBRARY_PATH Not Set In Environment
  • Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1017674]
help
Chatterbox?
[Lady_Aleena]: shmem, thanks. I'm am way out of practice.
[shmem]: perl -lE '@foo = (0..3);@bar = (4..7); push @foo,@bar; say for @foo'
[Lady_Aleena]: shmem, I feel like an idiot for forgetting something so basic.
shmem puts a big cauldron of "silly con charme" on the table in the refectorium
[reisinge]: 'push @foo, @bar' is the same as '@foo = (@foo ,@bar)' ?
[shmem]: yes, at least for the result in @foo

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (5)
As of 2017-04-27 11:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I'm a fool:











    Results (503 votes). Check out past polls.