将Perl转换为C ++或C# [英] Convert Perl to C++ or C#
本文介绍了将Perl转换为C ++或C#的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
新年快乐。
有没有perl脚本转换器转换到其他语言,如c ++或c#?
如果是的话,你可以给我链接吗? ,或者你可以写这段代码:
Hi and Happy new year.
Is there anywhere perl script converter to other languages like c++ or c#?
If yes, can you please give me link to it, or can you write this code:
foreach $pair (split('&', $form))
{
if ($pair =~ /(.*)=(.*)/)
{
($key,$value) = ($1,$2);
$value =~ s/\+/ /g;
$value =~ s/%(..)/pack('c',hex($1))/eg;
$value =~ s/%0D%0A/ /eg;
$inputs{$key} = $value;
}
}
c ++或c#中的
?
in c++ or c#?
推荐答案
对( split (' &',
pair (split('&',
form ))
{
if (
form)) { if (
pair =〜/(.*)=(.*)/)
{
(
pair =~ /(.*)=(.*)/) { (
这篇关于将Perl转换为C ++或C#的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文