hartwig has asked for the wisdom of the Perl Monks concerning the following question:

I just read in another post regarding Perl/Tk using NET and Perl. There is a book around
>>Programming Perl in The.NET Environment<<
Is it a buy? Can PERL.NET be an alternative for perl/tk in win32 enviroment?
Well, one has to rely on activestate support ... And MS :(
- On the other hand programming TK is not fun either (especially spreadsheet stuff :( )...
What are your experience with Perl.NET What are the requirements (Visual Studio) ?

Replies are listed 'Best First'.
Re: GUI and Perl.NET
by gellyfish (Monsignor) on Sep 10, 2004 at 12:10 UTC

    Yes you can use the System.Windows.Forms stuff from Perl.NET to create a GUI, but on the other hand there are other mechanisms by which you can create a .NET GUI in, say, C# and use application code written in Perl without the need for Perl.NET - windows scripting components are one way.

    I don't think you need Visual studio to use Perl.NET - only the .NET Framework runtime and SDK.

    An interesting alternative is PerlSharp that allows you use perl code directly from .NET - I've not tried to get this to work on windows though.

    /J\

Re: GUI and Perl.NET
by ldln (Pilgrim) on Sep 11, 2004 at 00:54 UTC
    I've browsed through this book. There is a chapter, bout 30 pages, dedicated to GUI programming in Perl .NET, using C# widgets and methods. Problem is EVERYTHING is done by "hand-typed code", hehe, or how I should put it.. i.e. there is no examples of RAD-development in Visual Studio for example..Everything is done "manually", just like with Tk, but we now have to deal with the .NET classes instead of Tk :/..

    There was a very interesting tutorial posted by Courage some time ago, A technique to create GUI design for Perl application using vtcl. I tested this briefly and it seemed to work very nicely.

    Unlike the buggish nightmare of the grid based komodo (v3.0 tested) GUI tool, vtcl is based on the place geometry manager. This gives us a true "WYSIWYG" approach in creating our GUI.

    What he basicly shows us is how we can, with the help of Tcl::Tk and Tcl, port a vtcl app into pTk.

    ..have to investigate some more on that stuff someday..

Re: GUI and Perl.NET
by gmpassos (Priest) on Sep 10, 2004 at 20:14 UTC
    Don't forget that for Win32 you also have the modules Win32::GUI and wxPerl (http://wxperl.sf.net).

    I recomend to use wxPerl since it has more resources and is portable, so, your code will work on Linux and Mac OS X too.

    Graciliano M. P.
    "Creativity is the expression of the liberty".