[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now


Perl to C#

Posted on 2008-11-05
Medium Priority
Last Modified: 2012-08-14

Can anyone please help me converting Perl code to C# ? I will email it to any one who can please help me
Question by:dotnetpro
LVL 16

Expert Comment

ID: 22892063
Instead of mailing it, why dont you post it here?

Accepted Solution

dotnetpro earned 0 total points
ID: 22903430
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


Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In order to hide the "ugly" records selectors (triangles) in the rowheaders, here are some suggestions. Microsoft doesn't have a direct method/property to do it. You can only hide the rowheader column. First solution, the easy way The first sol…
Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
This video shows how to quickly and easily deploy an email signature for all users in Office 365 and prevent it from being added to replies and forwards. (the resulting signature is applied on the server level in Exchange Online) The email signat…
Please read the paragraph below before following the instructions in the video — there are important caveats in the paragraph that I did not mention in the video. If your PaperPort 12 or PaperPort 14 is failing to start, or crashing, or hanging, …
Suggested Courses

834 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question