[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
    str1 . str2                   Concatenation
    str1 str2                Concatenation

    Placing  two  strings  or  variables  or  a  string  and  a variable in
    conjunction in an expression will  force their concatenation to form  a
    single  string.    The  concatenation  operator, ., ASCII character 239
    (0xef) has been created in QTAwk to make explicit string concatenation.

    Thus:

    "The first" "string" ==> "The first string"

    or

    "The first" . "string" ==> "The first string"

    If:

      vstr = "the Numerical value: ";

    and

      vn = 100.89123;

    then:

        vstr vn ==> "the numerical value: 100.891"

    or

        vstr . vn ==> "the numerical value: 100.891"

    Note that the numerical  output format, OFMT =  "%6g", has been used  to
    convert vn to a string before the concatenation operation is performed.

    Concatenation can be used to force any variable explicitly to a  string
    value.  Concatenating with the null string will leave the value of  the
    variable essentially unchanged.

This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson