Showing posts with label perl. Show all posts
Showing posts with label perl. Show all posts

Friday, March 12, 2010

How can I tell if a perl module is installed?

TO LOOK FOR A SPECIFIC MODULE:
find `perl -e '{print join $/, grep {/[^.]/} @INC}'` -name '*pm' 2>/dev/null |grep -i <>

where <> is the name of the module you are looking for

TO LIST ALL INSTALLED MODULES:
find `perl -e '{print join $/, grep {/[^.]/} @INC}'` -name '*pm' 2>/dev/null

Wednesday, April 22, 2009

IIS Integrated Authentication Gets Wrong User

Here's an interesting scenario we just went through and I thought I would share in case anyone else is searching for a fix to a similar issue... I recently wrote a set of web pages and cgi scripts for deploying OSB10gR3, WLI 9.2.2 and ALDSP3.0.1 assets from a web page. The idea is that developers can install assets to development themselves (without giving full admin access to the consoles) and not have to wait on the Middleware team to do installs for them. Part of the code checks the user that is hitting the page and validates they are authorized to run the install scripts in the environment they are trying to install to... The web pages are running in IIS Version 6.0 and I have Authenticated Integration enabled. The scripts worked great, except for 1 person, who was somehow hitting the page with a different userid than the one they were logged into Windows with... Turns out... We logged into his Windows XP machine and opened "User Accounts" in the Control Panel for his PC. Under the "Advanced" tab, there was an account set up for connecting to the specific server my pages are running on with the account name we saw when he tried hitting my web pages. We removed this entry, and tried hitting the page again (no reboot required) and the page recognized him as the corrct user. Simple fix, but it took a little while for us to find it.

Tuesday, December 2, 2008

Creating Perl Modules

I've always been gun shy about creating perl modules for my code because I've never found a great tutorial that breaks it all down. Today it all changes as I cvame across this posting that does a pretty good job at breaking down how it all works. At least in a simple case... http://www.linuxformat.co.uk/modules.php?op=modload&name=News&file=article&sid=748