concatenation means 'glueing stuff togehter'
you can use the . operator for that, ie like i showed in my example
however, print cats stuff too, since you are putting variables into the
print statement it needs to interpolate
check out http://japh.nu
it has a tutorial on data types, it explains this
hth
Jos Boumans
----- Original Message -----
From: "Sally" <[EMAIL PROTECTED]>
To: "Jos I. Boumans" <[EMAIL PROTECTED]>; "perl" <[EMAIL PROTECTED]>
Sent: Friday, July 27, 2001 11:37 AM
Subject: RE: errors
> Thanks for that, but what does concatenation mean and where have I used
it?
>
> Sally
>
> -----Original Message-----
> From: Jos I. Boumans [mailto:[EMAIL PROTECTED]]
> Sent: 27 July 2001 09:31
> To: Sally; perl
> Subject: Re: errors
>
>
> those errors mean that the variable you're trying to print out holds no
> value.
>
> ie, this would cause such an error:
>
> $bar = $foo . 'quux';
>
> since I didnt assign any value to $foo, it will say i usded an unitialized
> variable.
>
> a little pointer for readabillity of your code; instead of escaping all
your
> double quotes in the print statement, concider this:
>
> print qq(Your E-mail:<input type=text name="email">
> value="$INPUT{'email'}"><br>\n");
>
> the 'qq' means 'double quote this next string'.. it does the same as
> normally putting " " around a string,
> except now perl wont get confused on what you mean =)
>
> hth
> Jos Boumans
>
>
> > I'm getting error messages that I don't understand. Below are the errors
> and
> > the associated line of code, any help would be much appreciated,
> >
> > Sally
> >
> >
> > Use of uninitialized value in read at guest.pl line 35.
> > read(STDIN, $buffer, $ENV{'CONTENT_LENGTH'});
> >
> > Use of uninitialized value in concatenation (.) at guest.pl line 165.
> > print ("Your E-mail:<input type=text name=\"email\"
> > value=\"$INPUT{'email'}\"><br>\n");
> >
> > Use of uninitialized value in concatenation (.) at guest.pl line 171.
> > print ("<textarea name=comments COLS=60 ROWS=4 name=\"comments\"
> > value=\"$INPUT{'comments'}\"></textarea>\n");
> >
> >
> > --
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >
>
>
> --
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]