TheGorf has asked for the wisdom of the Perl Monks concerning the following question:
sub split_request( $ ) { my $http_request = $_[0]; my $method = ""; my $web_request = ""; my $request = ""; my $uri = ""; my $version = ""; ($method,$web_request) = split( / /,$http_request, 2 ); ($request,$version) = split( / /,$web_request, 2 ); ($request,$uri) = split( /\?/,$request ); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: splitting a string that appears inconsistently in structure
by kyle (Abbot) on Jan 02, 2009 at 02:41 UTC | |
|
Re: splitting a string that appears inconsistently in structure
by BUU (Prior) on Jan 02, 2009 at 03:04 UTC | |
|
Re: splitting a string that appears inconsistently in structure
by fzellinger (Acolyte) on Jan 02, 2009 at 03:09 UTC | |
by TheGorf (Novice) on Jan 02, 2009 at 06:41 UTC | |
by fullermd (Vicar) on Jan 02, 2009 at 12:12 UTC | |
by fullermd (Vicar) on Jan 02, 2009 at 12:35 UTC | |
by zwon (Abbot) on Jan 02, 2009 at 11:53 UTC | |
by Anonymous Monk on Jan 02, 2009 at 08:09 UTC |