I have an array of password information formatted like:
user:password:database:server
The user can be duplicated, but the database will be unique. I want to extract from the array the password for the specified user and database. So my call would be
get_pass.pl jack financedb
I know how to do this in shell, but I can't seem to get it correct for perl. Can anyone help?