You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+30-6Lines changed: 30 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -48,12 +48,7 @@ are very old and only provided as-is in case there is still a use for them.
48
48
49
49
You can install the full toolbox or select only a few scripts (with required modules) that you are interested in.
50
50
51
-
- scripts (with extension `.pl`) can be placed in a directory that is on your seach path (e.g. `~/bin`) or executed from the current working directory
52
-
- modules (with extension `.pm`) should be installed in the same directory as your scripts or any other directory that is in the Perl search path (`@INC`) for packages
53
-
54
-
If you don't like the `.pl` extension in the file name, please feel free to rename the script (removing the `.pl` extension). To use the `.pl` extension on scripts is my
55
-
personal preference, but there are many that don't like this or type the `.pl` extension everytime they execute the script. My solution to this "problem" is to use a symbolic
56
-
link without extension. For the modules, never remove the `.pm` extension, Perl relies on this.
51
+
To use the scripts you do not need to have any Perl knowledge, but you need to have Perl installed on your system. If you have Perl, the scripts will run from the command line like any other Linux, Mac or Windows command line or terminal application.
57
52
58
53
### Linux, Mac, other unix
59
54
@@ -65,6 +60,35 @@ Perl is not installed by default on Microsoft windows. To use the scripts you ha
65
60
66
61
Another option is to use [Matlab](https://www.mathworks.com/products/matlab.html) if you have that already installed. Matlab comes with Perl on-board and you can use Perl from the Matlab command window.
67
62
63
+
If you plan to use the Windows command prompt, please read on.
64
+
65
+
In the Windows command prompt (but *not* in a MSYS2/MinGW64 terminal or WSL) you have to run the scripts with a command like `perl script.pl .-options arg`. If you find this
66
+
inconvenient you can create a small (executable) batch file with the same name as the script but extension `.bat`, with the following content
67
+
```
68
+
@echo off
69
+
rem Wrapper around the rnxedit.pl script for the Windows command line. If perl is not
70
+
rem in your search path replace "perl" the full path to the perl executable. The
71
+
rem Perl script is expected in the same folder as this file, if not use the full
72
+
rem path name to the executable (without "%~dp0")
73
+
74
+
perl %~dp0rnxedit.pl %*
75
+
```
76
+
You can then simply execute as `script`. This is only necessary for the Windows command prompt, not under WSL or from a MSY2/MinGW64 terminal.
77
+
78
+
### Hints and tips
79
+
80
+
In order for the operating system to run the scripts it must first find them:
81
+
82
+
- scripts (with extension `.pl`) should be placed in a directory that is on your seach path (e.g. `~/bin`) or run from the current working directory using the full path,
83
+
- modules (with extension `.pm`) should be installed in the same directory as your scripts or any other directory that is in the Perl module search path (`@INC`).
84
+
85
+
If you don't like to type the `.pl` extension everytime you run the script, please feel free to rename the script (removing the `.pl` extension). Using the `.pl` extension on scripts is my
86
+
personal preference, but it is not necessary under Linux and there are many that don't like the use of this extension. My solution to this "problem" is to use a symbolic
87
+
link, without extension, to the actual script file with extension.
88
+
89
+
For modules this is completely different, never remove the `.pm` extension, Perl relies on this.
90
+
91
+
68
92
### Perl dependencies
69
93
70
94
The main Perl dependencies are the modules `Getopt::Long`, `File::Basename` and `Time::Local`. These module are part of core Perl and included by most, if not all,
0 commit comments