Difference in split funciton parameters
From: lonelyplanet999 (lonelyplanet999_at_my-deja.com)
Date: 03/29/04
- Previous message: IPaul: "GD::Graph Pie Chart Display Problem"
- Next in thread: Gunnar Hjalmarsson: "Re: Difference in split funciton parameters"
- Reply: Gunnar Hjalmarsson: "Re: Difference in split funciton parameters"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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!
- Previous message: IPaul: "GD::Graph Pie Chart Display Problem"
- Next in thread: Gunnar Hjalmarsson: "Re: Difference in split funciton parameters"
- Reply: Gunnar Hjalmarsson: "Re: Difference in split funciton parameters"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|