/usr/local/bin/wafe --p `pwd`/goodbye
is workable, but not particularly concise or convenient. It could be encapsulated in a shell script, but it would be a bit clumsy to have to write a shell script to invoke each WAFE Perl script we write.
WAFE provides a convenient, if mildly
mysterious, alternative: If
invoked under the name
looks for and invokes program
exactly as if
--p something had been
specified on the commandline.
Thus, if we do
ln -s /usr/local/bin/wafe xgoodbye
in the directory containing the
Perl script, we can then invoke it simply by
at the unix prompt. This is the typical way of invoking production WAFE Perl scripts.
Note: WAFE options always begin with a double
'--'): Anything not recognized by
WAFE as a WAFE option (or an X option,
-geometry) is passed intact to the invoked
Thus, in general filenames and options may be freely used by the invoked Perl scripts, given a little care to avoid any which might be mistaken for X or WAFE options.