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

Is perl script can run without web servers in windows.If possible what are the steps to follow

Replies are listed 'Best First'.
Re: Perl without webserver in windows
by alexander_lunev (Pilgrim) on Jul 08, 2019 at 12:26 UTC

    If you're really asking "Can I run Perl CGI scripts on Windows without CGI-capable HTTP web server software?", then answer will be - of course - YES! You have many options here.

    1. You can write your own HTTP web server in Perl from scratch using IO::Socket::INET.
    2. You can use some of already written HTTP server Perl modules from MetaCPAN.
    3. Or you can use web framework from MetaCPAN.org, many of them includes HTTP server (I prefer Mojolicious, it's simple but powerful)
    In any case all you need is Perl and MetaCPAN.
Re: Perl without webserver in windows
by Discipulus (Canon) on Jul 08, 2019 at 09:27 UTC
    Hello Ekanvitha9,

    Perl has no need of a webserver (not on windows nor on linux): download your copy of http://strawberryperl.com/releases.html portable edition, unpack it and run portableshell.bat launcher.

    L*

    There are no rules, there are no thumbs..
    Reinvent the wheel, then learn The Wheel; may be one day you reinvent one of THE WHEELS.
Re: Perl without webserver in windows
by daxim (Curate) on Jul 08, 2019 at 11:46 UTC
Re: Perl without webserver in windows
by Ekanvitha9 (Novice) on Jul 08, 2019 at 09:45 UTC

    How can we run a perl script in Activeperl without web server in windows?

      I run ActivePerl on my Windows 10 machine.

      This has nothing to do with a web server although Perl like JAVA, Python and other languages can used in conjunction with web services.

      Save this program as "Hello.pl".
      Double click on that file.

      use strict; use warnings; print "Hello World, hit 'enter' key to end this program!\n"; my $in =<STDIN>;
      I tested this on my Win 10 Active Perl environment and it works.
      To do more development with Perl, you will need to know how to use the "Command Line" of Windows.
Re: Perl without webserver in windows
by Ekanvitha9 (Novice) on Jul 08, 2019 at 09:32 UTC

    I need it for Activeperl

      You need what for ActivePerl?


      holli

      You can lead your users to water, but alas, you cannot drown them.