Which says "Convert files with extension 'foo' to a file with
extension 'bar' using program 'program'. $< and $@ mean "input" and
"output," respectively, and are substituted with the input and output
- filenames, just like make does. Note that conv considers an extension
- to be made up of letters and numbers ONLY. If this isn't sufficient,
- go hack the regex yourself. :P
+ filenames, just like make does. There is also the $* variable for the
+ name of the file without the extension. Note that conv considers an
+ extension to be made up of letters and numbers ONLY. If this isn't
+ sufficient, go hack the regex yourself. :P
* A variable declaration, which looks like:
my $infile = "$base.$iext";
$infile =~ s/"/\\"/g;
$cmd =~ s!\$\<!"$infile"!g;
+ $cmd =~ s!\$\*!"$base"!g;
my $outfile;
if ($opts{o}) {
if ($dirout) {