tags:

views:

67

answers:

4

Hi all,

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 labor 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.

+1  A: 

Such migration would require complete rewriting and redesigning of everything.

Sorry.

Vanya
+4  A: 

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.

speshak
+5  A: 

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.

David
@daxim: Good catch, I didn't even notice that while I was typing. It's been so long since I've even talked about Perl :)
David
+2  A: 

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.

code4life