Results 1 to 8 of 8

Thread: Conc...That One Word.

  1. #1

    Thread Starter
    Stuck in the 80s The Hobo's Avatar
    Join Date
    Jul 2001
    Location
    Michigan
    Posts
    7,256

    Conc...That One Word.

    How can you add two strings together in CGI? like...

    Code:
    $var1 = "dude";
    $var2 = ", where's my car!?";
    
    $var3 = $var1 + $var2;
    That'd be the C++ equivilent. How do you do it in CGI?
    My evil laugh has a squeak in it.

    kristopherwilson.com

  2. #2
    In PHP the operator is ., perhaps it's the same in CGI...?

  3. #3

    Thread Starter
    Stuck in the 80s The Hobo's Avatar
    Join Date
    Jul 2001
    Location
    Michigan
    Posts
    7,256
    I remember that now! Thanks, Arien.
    My evil laugh has a squeak in it.

    kristopherwilson.com

  4. #4
    Frenzied Member
    Join Date
    Feb 2001
    Posts
    1,140
    Uhm, CGI isn't a language. If you are using Perl, the string concatenation operator is the period.
    Travis, Kung Foo Journeyman
    As always, RTFM.

    WWW Standards: HTML 4.01, CSS Level 2, ECMA 262 Bindings to DOM Level 1, JavaScript 1.3 Guide and Reference
    Perl: Learn Perl, Llama, Camel, Cookbook, Perl Monks, Perl Mongers, O'Reilly's Perl.com, ActiveState, CPAN, TPJ, and use Perl;
    YBMS, but Mozilla doesn't.

  5. #5

    Thread Starter
    Stuck in the 80s The Hobo's Avatar
    Join Date
    Jul 2001
    Location
    Michigan
    Posts
    7,256
    Uhm, I never stated it was.

    CGI is most commonly associated with perl. I never said my terminology was perfect either. In fact, I admitted I didn't know what the term was for doing this right in the subject of the post.

    Get off my back.
    My evil laugh has a squeak in it.

    kristopherwilson.com

  6. #6

    Thread Starter
    Stuck in the 80s The Hobo's Avatar
    Join Date
    Jul 2001
    Location
    Michigan
    Posts
    7,256
    And I already figured this out. So stop answering my questions after they've already been answered.
    My evil laugh has a squeak in it.

    kristopherwilson.com

  7. #7
    PowerPoster
    Join Date
    Jul 1999
    Posts
    5,923
    Originally posted by The Hobo
    In fact, I admitted I didn't know what the term was for doing this right in the subject of the post.
    it's concatenation, just for your info

  8. #8

    Thread Starter
    Stuck in the 80s The Hobo's Avatar
    Join Date
    Jul 2001
    Location
    Michigan
    Posts
    7,256
    woo! got the first four letters
    My evil laugh has a squeak in it.

    kristopherwilson.com

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width