strawberry-perl

How do I run programs with Strawberry Perl?

房东的猫 提交于 2019-11-28 21:10:21
A coworker is trying to use ack (a Perl program) on his Windows machine, having tried it under Linux and decided he definitely wants to use it. He managed to get Strawberry Perl installed on his machine, but can't seem to figure out what to do to make ack run with it from a command prompt. He tried editing the #! line, but I knew that wouldn't work. I'm pretty sure Strawberry perl is in his PATH. What do you need to do to run a general Perl program in your PATH on Windows using Strawberry? Update: I'm seeing some information online about the PATHEXT variable, but not enough. First, be careful

How do I create drag-and-drop Strawberry Perl programs?

大憨熊 提交于 2019-11-28 09:13:14
I've got a Strawberry Perl program that accepts a single-file as a command-line argument. How can I set things up such that I can drag and drop the desired file onto the Strawberry Perl program (or a wrapper around it) and the program runs with that file's name as an argument? Under Windows (tested with XP), you can create a .cmd file and simply have it run the Perl program with the argument of %1 to pass the filename over, as if executed by commandline. perl c:\test.pl %1 Then you can simply drag and drop a file onto the .cmd file to execute. Eeek! Please don't create a wrapper script/cmd

Installing modules using Strawberry Perl

故事扮演 提交于 2019-11-27 17:29:42
Until now I used ActiveState 's ActivePerl , and used the ppm for installing modules. Last week I moved to Strawberry Perl , but I don't know how I should install modules using Strawberry Perl. What is some information on how module installation is done using Strawberry Perl or is there some link on how to install new modules? Alexandr Ciornii You can still use ppm , but it is not recommended. Run CPAN client from the Strawberry Perl or Strawberry Perl (64-bit) , sub folder Tools , entry in the Start menu. Type install Module::Name there. As Alexandr says, you can use the CPAN client via the

How do I install a module? Strawberry Perl issues

こ雲淡風輕ζ 提交于 2019-11-27 13:47:18
问题 I am trying to install a Perl module within Strawberry Perl on Windows 7. I'm running the below command and am getting a slew of messages I don't understand. It looks like I am getting 500 errors, as though the page isn't reachable. However, when I point the mirrors in my browser I have no problem accessing the FTP directories. I have little Perl experience on Linux, and none on Windows. I tried manually adding a mirror to the urllist, and I don't think that helped. C:\Program Files> cpan

How do I create drag-and-drop Strawberry Perl programs?

孤者浪人 提交于 2019-11-27 05:49:49
问题 I've got a Strawberry Perl program that accepts a single-file as a command-line argument. How can I set things up such that I can drag and drop the desired file onto the Strawberry Perl program (or a wrapper around it) and the program runs with that file's name as an argument? 回答1: Under Windows (tested with XP), you can create a .cmd file and simply have it run the Perl program with the argument of %1 to pass the filename over, as if executed by commandline. perl c:\test.pl %1 Then you can

Installing modules using Strawberry Perl

[亡魂溺海] 提交于 2019-11-26 19:01:54
问题 Until now I used ActiveState's ActivePerl, and used the ppm for installing modules. Last week I moved to Strawberry Perl, but I don't know how I should install modules using Strawberry Perl. What is some information on how module installation is done using Strawberry Perl or is there some link on how to install new modules? 回答1: You can still use ppm , but it is not recommended. Run CPAN client from the Strawberry Perl or Strawberry Perl (64-bit) , sub folder Tools , entry in the Start menu.

Which version of Perl should I use on Windows? [closed]

我只是一个虾纸丫 提交于 2019-11-26 18:58:03
问题 The win32.perl.org web site provides references to several Perl distributions for MS Windows. For a long time I have been using ActivePerl from ActiveState but recently I switched to Strawberry Perl. IMHO The only advantage that Active Perl still has over Strawberry Perl is the fact that it comes with Perl Tk which means its easy to install Devel::ptkdb the graphical debugger. Other than that, I think Strawberry Perl has all the advantages. 回答1: Strawberry Perl is just getting better and

Omitting return statement in C++

▼魔方 西西 提交于 2019-11-26 16:37:42
I just had some weird behavior from a version of g++ for Windows that I got with Strawberry Perl. It allowed me to omit a return statement. I have a member function that returns a structure consisting of two pointers, called a boundTag : struct boundTag Box::getBound(int side) { struct boundTag retBoundTag; retBoundTag.box = this; switch (side) { // set retBoundTag.bound based on value of "side" } } This function gave me some bad output, and I discovered that it had no return statement. I had meant to return retBoundTag but forgot to actually write the return statement. Once I added return

Omitting return statement in C++

亡梦爱人 提交于 2019-11-26 04:26:20
问题 I just had some weird behavior from a version of g++ for Windows that I got with Strawberry Perl. It allowed me to omit a return statement. I have a member function that returns a structure consisting of two pointers, called a boundTag : struct boundTag Box::getBound(int side) { struct boundTag retBoundTag; retBoundTag.box = this; switch (side) { // set retBoundTag.bound based on value of \"side\" } } This function gave me some bad output, and I discovered that it had no return statement. I