[Info-vax] Quoting question

Jan-Erik Soderholm jan-erik.soderholm at telia.com
Wed Jan 21 13:11:30 EST 2015


Bob Gezelter skrev den 2015-01-21 17:59:
> On Wednesday, January 21, 2015 at 11:32:23 AM UTC-5, JF Mezei wrote:
>> Say I have:
>>
>> $chocolate = "good"
>> $cherry = "red"
>> $flavour = "chocolate"
>>
>> is there a way to have
>>
>> $write sys$output "''flavour' is ?????????"
>>
>> come out  as "chocolate is good"  ?
>>
>> or would I have to do a substitution to a temporary variable first and
>> use that temp variable in the write sys$output command ?
>
> JF,
>
> I am in the field, and blocked from ssh access, so the following is from memory.
>
> $ WRITE SYS$OUTPUT "''flavour' is ''chocolate'"

Of course, but it was obvious (as I read it) that cheating
like that was not a valid solution. The point is to only
use the symbol "flavour" to get both values, not?

>
> No intermediate variable is needed (although sometimes it increases readability).

Agree, there is no problem with splitting the "solution"
on multiple lines, of course. :-)

Jan-Erik.

>
> - Bob Gezelter, http://www.rlgsc.com
>




More information about the Info-vax mailing list