in reply to Re^2: a perl, awstats and SHOUTCast history
in thread a perl, awstats and SHOUTCast history

doh!
some ours on it and I got no results, I dont know how to tell the script to replace the string with any of the proposed expressions while inside a loop. gave up again
trashing everything, stick on the original script, and awaiting to a little more input from the comunity before investing more time on this.

thanks but again!

  • Comment on Re^3: a perl, awstats and SHOUTCast history

Replies are listed 'Best First'.
Re^4: a perl, awstats and SHOUTCast history
by Anonymous Monk on Apr 09, 2012 at 02:08 UTC

    What? Community? How are you running awstats? What is the LogFormat?

    See Re: a perl, awstats and SHOUTCast history and use

    ... $player = 'VLC' if $player =~ /VLC/i; $player = 'iTunes' if $player =~ /iTunes/i; ## generic, remove everything after first non word char ## hopefully only leaving something like iTunes $player =~ s/\W.*//; $player = uc $player; # uppercase it ...