in reply to Re: LWP not returning leading spaces in web page (ver 2)
in thread LWP not returning leading spaces in web page (ver 2)
adrianh, Yes, I should (and do) trust Perl. I'm not sure that Perl or Perl modules are at fault here. However, I do believe the spaces are in the original HTML. The reason I believe that is two-fold:
I wonder if lynx and wget are likewise receiving the pages from the server w/o leading spaces, while Mozilla is getting those spaces. It was suggested that it might have to do with the particular Content Encoding headers inserted by Mozilla and the associated behavior of Apache. But I haven't had time to experiment more to look at those differences. I will try lynx and wget against the suggested Perl Cookbook "fake web server".
I do have to figure out some way to retrieve my pages with the leading spaces, since they are syntactically important to parse the returned text.
Andy
@_="the journeyman larry disciple keeps learning\n"=~/(.)/gs, print(map$_[$_-77],unpack(q=c*=,q@QSdM[]uRMNV^[ni_\[N]eki^y@))
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: LWP not returning leading spaces in web page (ver 2)
by adrianh (Chancellor) on Feb 02, 2003 at 12:29 UTC | |
by aspen (Sexton) on Feb 02, 2003 at 22:51 UTC | |
by adrianh (Chancellor) on Feb 02, 2003 at 23:12 UTC | |
by aspen (Sexton) on Feb 03, 2003 at 00:41 UTC |