Suggest please

Posted on 2004-11-08
Last Modified: 2013-12-25
Hello All

Please Suggest , which Perl module will give best performance from the available, for

1). Templating.
2). Maintaining Session State.
3). Maintaining Application State.

Question by:ksb01
    LVL 16

    Accepted Solution

    Have you tried Apache::Session

    LVL 13

    Assisted Solution

    I would suggest you spend some time using each different module and decide this on your own. Someone else's apple is another man's orange. The performance usually will be dependent on how you're using the module moreso than what module you're using.

    Additionally, will you be using mod_perl or Perl CGI?

    You can do the things you're asking for with the following modules and they're all quite well written and widely used. Without a more detailed understanding of your requirements, this is about the best I can come up with for a CGI implementation:

    CGI::Application (Provides templating via HTML::Template and implements application state - has a plugin for integration with CGI::Session below)
    CGI::Session (Session state)

    LVL 51

    Assisted Solution

    do you mean perl itself, or perl used as CGI in a web server, or perl used embeded in a web server, or .... ?
    This makes the biggest performance difference, most likely not the used modules.
    Then you can choose the propper modules.

    Apache::Session or CGI::Session
    Apache::Template and Template::* itself (aka TT2)
    # and probably much more ...
    LVL 51

    Expert Comment

    I'd vote for a split

    Featured Post

    What Security Threats Are You Missing?

    Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

    Join & Write a Comment

    Suggested Solutions

    Title # Comments Views Activity
    Python script details 2 53
    exchange 2007, scripts 15 54
    Python 2.7 - Passing arguments 8 32
    Studying Angular for employability 5 43
    Batch, VBS, and scripts in general are incredibly useful for repetitive tasks.  Some tasks can take a while to complete and it can be annoying to check back only to discover that your script finished 5 minutes ago.  Some scripts may complete nearly …
    Active Directory replication delay is the cause to many problems.  Here is a super easy script to force Active Directory replication to all sites with by using an elevated PowerShell command prompt, and a tool to verify your changes.
    Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
    The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

    755 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

    Need Help in Real-Time?

    Connect with top rated Experts

    21 Experts available now in Live!

    Get 1:1 Help Now