in reply to a perl, awstats and SHOUTCast history
vlc%2F1%2E1%2E5
This is hexadecimal escaped character. '%' and two hex string indicates encoded character. if you replace this string with
It will showperl -e 'my $s="vlc%2F1%2E1%2E5"; $s=~ s/%(..)/chr(hex($1))/eg; print +$s;';
here, %2F='/', %2E='.'vlc/1.1.5
So, How about replacing $word[6] with this regex or using module like URI::Escape?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: a perl, awstats and SHOUTCast history
by alexolivan (Initiate) on Mar 28, 2012 at 07:39 UTC | |
by alexolivan (Initiate) on Mar 28, 2012 at 11:40 UTC | |
by Anonymous Monk on Apr 09, 2012 at 02:08 UTC |