in reply to CGI.pm, combining two strings

#no space print $query->textfield('foo').$query->textfield('bar'); #space print $query->textfield('foo').' '.$query->textfield('bar');

Dr. Michael K. Neylon - mneylon-pm@masemware.com || "You've left the lens cap of your mind on again, Pinky" - The Brain

Replies are listed 'Best First'.
Re: Re: CGI.pm, combining two strings
by ok (Beadle) on May 07, 2001 at 22:59 UTC
    Here's the fishing rod: the dot operator concatenates strings. In the second example, Masem is concatenating the first variable with a space with the second variable.