in reply to Re: Strange @ appearance
in thread Strange @ appearance
Does anyone see something dodgy with that little lot? Also, yes, it may be a null character, but I have chomped and choped the last line of text, and even done a 'get rid of crap' command $article =~ s/\ 0//g;, all to no avail. Sheesh, It's gonna take me a while to get used to PERL. It's very powerful and, if you know it, quick, but it's so untidy! Im a Java man you see...# Get POSTED info and stick it in $post_info. read (STDIN, $post_info, $ENV {'CONTENT_LENGTH'} ); # split off fields and put them in @InfoArray @InfoArray = split(/&/, $post_info); # Remove variable= part and translate data into real chars for ($n = 0; @InfoArray[$n]; $n++) { chomp; # remove newline ($dummy, $temp) = split (/=/, @InfoArray[$n]); $temp =~ tr/+/ /; $temp =~ s/%([a-fA-F0-9][a-fA-F0-9])/pack("C", hex($1))/eg; @InfoArray [$n] = $temp; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Strange @ appearance
by Anonymous Monk on Jul 29, 2001 at 19:14 UTC |