version 1.99, 2002/08/12 18:21:42
|
version 1.100, 2002/08/16 18:25:24
|
Line 768 sub expandnamed {
|
Line 768 sub expandnamed {
|
} |
} |
if ($#matches == 0) { |
if ($#matches == 0) { |
$returnvalue = '$c{\''.$matches[0].'\'}'; |
$returnvalue = '$c{\''.$matches[0].'\'}'; |
|
} elsif ($#matches > 0) { |
|
# more than one match. Look for a concise one |
|
$returnvalue = "'non-unique parameter name : $expression'"; |
|
foreach (@matches) { |
|
if (/^$expression$/) { |
|
$returnvalue = '$c{\''.$_.'\'}'; |
|
} |
|
} |
} else { |
} else { |
$returnvalue = "'bad parameter name : $expression'"; |
$returnvalue = "'bad parameter name : $expression'"; |
} |
} |