The syntax
/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 wafe
is
invoked under the name xsomething
, it
looks for and invokes program something
,
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 goodbye
Perl script, we can then invoke it simply by
typing
xgoodbye
at the unix prompt. This is the typical way of invoking production WAFE Perl scripts.
Note: WAFE options always begin with a double
hyphen ('--'
): Anything not recognized by
WAFE as a WAFE option (or an X option,
such as -geometry
) is passed intact to the invoked
program.
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.