Difference in split funciton parameters

From: lonelyplanet999 (lonelyplanet999_at_my-deja.com)
Date: 03/29/04

  • Next message: Gunnar Hjalmarsson: "Re: Difference in split funciton parameters"
    Date: 29 Mar 2004 10:36:49 -0800
    
    

    Hi,

    I'm a newbie of perl language and I would like to ask the differences
    in below pieces of code:

    1.
         read(STDIN, $stuff, $ENV{'CONTENT_LENGTH'});
         @pairs = split(/\&/, $stuff);

    2.
         read(STDIN, $stuff, $ENV{'CONTENT_LENGTH'});
         @pairs = split(/&/, $stuff);

    Do they both get a blob of data with length specified by the
    CONTENT_LENGTH environment variable then split the name=value pairs
    separated by '&' characters ?

    Tks!


  • Next message: Gunnar Hjalmarsson: "Re: Difference in split funciton parameters"

    Relevant Pages