开发者

is there an automatic tool for migrating a project from Perl to ASP.NET?

I have this web based project written in Perl and I have to migrate it to ASP.NET. I'm a complete noob at this. Is there a way to reduce the manual lab开发者_如何学编程or for it? What would be your approach? Can you also provide a short example of something that works, maybe how to port a small HelloWorld file?

Many thanks.


As others have pointed out, this is not really possible. Perl and .NET are vastly different beasts and a direct automated conversion simply isn't going to happen. It's difficult enough to have an automated conversion between two languages using the same framework, let alone two languages from entirely different eras that approach web development in entirely different ways.

It should be noted that machine translation is generally as bad in programming languages as it is in spoken languages. Even if it produces something that can be parsed and understood by that language's interpreter, that doesn't mean it's going to actually make sense in that language. (Basically, you'd be getting the C# version of "Engrish.") It would be trying to fit the design considerations of the source language into the syntax of the target language, which is generally a bad idea. The resulting code would likely be more difficult to support and more prone to bugs/exploits/problems than just continuing to support the original code.


I would be extremely surprised if there is an automated tool for this. First off there are loads of ways to do web development in perl, so even if there was such a tool, it would have to speak the framework your site used.

You're pretty much stuck with manual conversion.


There's a product that you might be interested in, it's called Perl Dev Kit (PDK) and can be found here:

http://www.activestate.com/downloads

It can help you to integrate the code over to the .NET world. Warning - it's not free.


Such migration would require complete rewriting and redesigning of everything.

Sorry.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜