2 Replies - 9322 Views - Last Post: 25 July 2012 - 08:55 AM

#1 cupidvogel  Icon User is offline

  • D.I.C Addict

Reputation: 31
  • View blog
  • Posts: 593
  • Joined: 25-November 10

How to make a software in Perl?

Posted 23 July 2012 - 02:00 AM

Hi, suppose I have written a Perl script that creates a text file, writes something to it, and closes it. The code involves some other steps which require the download of a module from CPAN. So I do this prior to executing the code by doing something like perl -MCPAN -e shell followed by install some::module. Naturally I do the entire thing from the command prompt (the PATH has been set by me to include the Perl directory). Now I want to package this entire thing as a software, say an exe file. When the user download this exe file, and execute it (by double clicking it, say), it should install Perl on its own, (or just refer to the existing installation if there is one already), then download that module from CPAN (again just include it if already there), and then execute the code normally, so that by the end of the process, the user will see the new text file in thae same directory. How to do it in Perl? What resources do I need to learn, apart from Tk for the GUI part? Any link or basic idea would be appreciated!

Is This A Good Question/Topic? 0
  • +

Replies To: How to make a software in Perl?

#2 dsherohman  Icon User is offline

  • Perl Parson
  • member icon

Reputation: 226
  • View blog
  • Posts: 654
  • Joined: 29-March 09

Re: How to make a software in Perl?

Posted 24 July 2012 - 02:57 AM

The preferred way of creating standalone Perl programs changes over time as new tools are developed, but I'm pretty sure that PAR (the Perl ARchiver) is the one you'd want to use these days. There's a (brief) tutorial on setting it up and using it at http://www.hermannin...standalone.html
Was This Post Helpful? 1
  • +
  • -

#3 cupidvogel  Icon User is offline

  • D.I.C Addict

Reputation: 31
  • View blog
  • Posts: 593
  • Joined: 25-November 10

Re: How to make a software in Perl?

Posted 25 July 2012 - 08:55 AM

Thanks.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1