Re: bleary eyed
Robert Barta (rho@bigpond.net.au)
Wed, 21 Mar 2001 19:58:13 +1000
Jeff Orrok wrote:
>
> It's past my bedtime, and I can't figure out why the following generates
> a 404 error, when I cat into it a file with a url on a line followed by
> a series of lines of the format field=value
>
> But when I hardcode the url after the POST => instead of $_ and cat in
> the same file, then it gives me the page.
>
> Someone wanna help me?
>
> while(<>){
> chop;
Maybe you want to use
while (<>) {
chomp;
next unless m#http://#'
....
?
chomp is not the same as chop.
\rho