![]() And I have to say one should just learn Perl - it's a very beautiful language. Strawberry Perl is at least as great if not greater. It was super-easy for me to get started with Perl language while I was on vacation when I wasn't always online. I ended up going with ActivePerl simply because it comes with offline documentation (in HTML) - a great life-savior for those who are on the road or just not always connected. I actually liked both which is a good thing! One can't go wrong with either of these. I gave both distributions a run for a couple of weeks. And I wonder: What should I pick to get started? If I pick one how hard, is it to migrate to the other? There's a clear trade-off between those two. It also says that ActivePerl has a lot of prepackaged modules which are easier to install with PPM. Wikipedia says that Strawberry Perl comes with additional development tools to compile CPAN modules if necessary. ![]() I read about two rival distributions available for Windows platform (I guess there's just Perl on other OSes :). But otherwise, ack gets installed with an "ack.bat" wrapper into the same path as "perl", so if you can run "perl" you should be able to run "ack".I'm totally new to Perl, but I'd like to try it out. ![]() If it isn't working, where in that chain are things broken? For example, if you can't run "perl" from the command line, then Strawberry didn't install correctly (or isn't in your PATH) and you'll need to fix that. This program is free software you can redistribute it and/or modify it If so, I don't see why you can't run "ack" from the command line: C:\> ack -versionĬopyright 2005-2009 Andy Lester, all rights reserved. Writing C:\strawberry\perl\site\lib\auto\ack\.packlistĪppending installation info to C:\strawberry\perl\lib/perllocal.podĬ:\strawberry\c\bin\dmake.EXE install UNINST=1 - OK Installing C:\strawberry\perl\bin\ack.bat Installing C:\strawberry\perl\site\lib\App\Ack\Plugin\Basic.pm Installing C:\strawberry\perl\site\lib\App\Ack\Resource.pm ![]() Installing C:\strawberry\perl\site\lib\App\Ack\Repository.pm Installing C:\strawberry\perl\site\lib\App\Ack\Plugin.pm Installing C:\strawberry\perl\site\lib\App\Ack.pm Osname=MSWin32, osvers=5.1, archname=MSWin32-x86-multi-threadĭid App::Ack installed correctly? C:\> cpan App::Ack Summary of my perl5 (revision 5 version 10 subversion 0) configuration: Is Strawberry Perl installed correctly? Can you run "perl" from cmd.exe? C:\> perl -V I haven't had a problem just installing ack and running it from the command line. Installers usually take care of the last two steps, but this knowledge is useful if you'd like to add your own or need to fix it. Note that the order in this list is important for the search, just as the order in Path matters. pl to the list, and you can invoke the program just with program. The program is searched for in the Path, but when there's no extension, PATHEXT is used to complete the name. You may have noticed that you can call a program on Windows without the extension. That way, you can call programs just by naming them with the. This is done by creating the registry key HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.pl\Shell\Open\Command (or HKEY_CURRENT_USER if it's for the current user only) and set the (Default) value to "C:\strawberry\perl\bin\perl.exe" "%1" %* Installed programs usually do this automatically because MakeMaker and Module::Build take care of this. The first is to create a batch version of the program with pl2bat, which will execute perl with the program. There are two common ways, at least that I know of, to run a Perl program from the Windows Command Prompt. The Perl binaries and core programs usually end up in \bin, but others may end up in the site specific directory \site\bin. First, be careful that the program is in the Path, not just perl.exe.
0 Comments
Leave a Reply. |