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!