Perl to C#


Can anyone please help me converting Perl code to C# ? I will email it to any one who can please help me
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Instead of mailing it, why dont you post it here?
dotnetproAuthor Commented:
ok here you go then. I have no idea about it.
sub cookie {
$HomeScriptDir = 0;
$HomeScriptDir = "/proj/mplb2b/www/shipping/cgi-bin/cookie";
$wsldir =$HomeScriptDir;
$validate ="$wsldir/validate"; # set variable to the location of validate file
$keyring = "$wsldir/keyring.b2b.public.db"; # set variable to the location of keyring file
$cookie = $ENV{'HTTP_COOKIE'}; # excepting env cookie
&parse_recs ($cookie, *mycookie);
$ford_wsl = $mycookie{'Ford-WSL'};
$cdsid = $ENV{'REMOTE_USER'}; # setting cdsid variable to env id (cds id or FSN
$wslcookie{'cdsid'} = $ENV{'REMOTE_USER'}; # setting the hash to env id (cds id
$wslcookie{'cdsid'} =~ tr/a-z/A-Z/; # Regular expression converting all lower ca
@wsl_data=`$validate -tepiq -k $keyring $ford_wsl 2>/dev/null`; # populate array
$wslcookie{'ciphertxt'} = $ford_wsl;
$wslcookie{'issuedate'} = $wsl_data[1];
$wslcookie{'expiredate'} = $wsl_data[2];
$wslcookie{'issuer'} = $wsl_data[3];
$wslcookie{'ipaddr'} = $wsl_data[5];
$wslcookie{'acigroup'} = $wsl_data[6];
$wslcookie{'deptnum'} = $wsl_data[7];
$wslcookie{'orgcODE'} = $wsl_data[8];
$wslcookie{'emptype'} = $wsl_data[9];
$wslcookie{'mrrole'} = $wsl_data[10];
$wslcookie{'org'} = $wsl_data[11];
$wslcookie{'company'} = $wsl_data[12];
$wslcookie{'divabbr'} = $wsl_data[13];
$supplier_site_code=$wslcookie{'org'}; # defines user site
} # end of sub routine cookie

Open in new window

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.