I have a Perl installation for bare bones, and I would like to create a dialog box asking you to specify the folder and / or folder to run the script.
This is my working computer, and I need permission to install Perl - IT ignored my request (they did not deny it). I managed to find a truncated version of Perl installed with another program, and with that using a script. He had exactly 3 modules, and I added strict warnings.
I understand that there are modules for this (TK is the most popular), but they depend on other modules (AutoLoader, DynaLoader, ...), which probably depend on others. Sneaking up two modules in one: sneaking a dozen + is another.
Edit (bottom): Another complication. My immediate team members use my scripts, and they all have a simple Perl installation, because they all have a parent program. The first time someone uses one of my Perl scripts, I establish file associations and add strict and warning messages (so I donβt forget to comment on them). Thus, I would like to keep the mood as simple as possible.
Currently, all my scripts are running in the folder in which they are located. This becomes inconvenient due to changes in scenarios over time. My current plan is to use a command line prompt so that the user copies the file path from Windows Explorer and then parses it using a regular expression. I foresee a couple of problems with this:
- Paste on the command line is annoying
- Care must be taken when bridging network drives (C> G> N)
- spaces / strange characters / slashes go the right way.
- Make sure the script works in the "new" input location
This seems doable, but I wanted to see if there would be a more convenient way to do this (esp to get around the command line annoyance).
Hopefully the question is not too wide for this forum - if not, I will come back later with some programmed code.
OS: Windows 7 Professional (64 bit)
Perl: ActiveState version 5.6.0 (downloaded February 21, 2001)
Available modules: Exporter, RE, utf8, strict and warning. As a rule, this works quite well, since I usually do file manipulations.