[ic] Perl "space" question

Webpraxis Consulting Ltd. webpraxs at tnc.ab.ca
Sun Oct 5 21:33:52 EDT 2003


At 05:48 PM 10/5/03 -0700, you wrote:
>How can I express something like this in a UserTag:
>
>	$Scratch->{email} = $Scratch->{email}
>$transaction->{Buyer}->{User}->{Email};
>
>That's appending "$transaction->{Buyer}->{User}->{Email}" to the "email"
>scratch variable after a space.  The way I have it above, IC restarts with
>an error like this:
>
>Scalar found where operator expected at (eval 79) line 42, near "}
>$transaction"
>
>        (Missing operator before  $transaction?)

Try

$Scratch->{email} .= qq( $transaction->{Buyer}->{User}->{Email});

FYI, ".=" is Perl's string-append operator && "qq" is the double-quote
operator (just personal preference).

Cheers,
Yves



More information about the interchange-users mailing list