Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re: CB client problems

by kelan (Deacon)
on Sep 30, 2002 at 16:39 UTC ( [id://201764]=note: print w/replies, xml ) Need Help??


in reply to CB client problems

I had the same problem with the Perl/Tk client. There were some broken regex's, as I recall. See this node for a couple patches that should fix things right up. (They did for me anyway.)

kelan


Yak it up with Fullscreen ChatterBox

Replies are listed 'Best First'.
(Really) quick & (a bit) dirty patch
by bronto (Priest) on Oct 01, 2002 at 09:08 UTC

    I wrote my quick'n'dirty patch yesterday, no XML modules involved; I downloaded PerlMonksModules-2.2.tar.gz from sourceforge.

    $ diff Users.pm.dist Users.pm 66c66 < my %users=($c=~/user\s+username="([^\"]+)"\s+user_id="(\d+)"/g +); --- > my %users= reverse ($c=~/user\s+user_id="(\d+)"\s+username="([ +^\"]+)"/g);
    $ diff Chat.pm.dist Chat.pm 61c61 < my @msgs=($c=~/message\s+author="([^\"]+)"[^>]+>\s*(.*?)\s*<\/me +ssage>/g);--- > my @msgs=($c=~/message\s+[^>]*author="([^\"]+)"[^>]+>\s*(.*?)\s* +<\/message>/g);

    These work for me. But your patches are definitely more elegant :-)

    Of course,

    Ciao!
    --bronto

    # Another Perl edition of a song:
    # The End, by The Beatles
    END {
      $you->take($love) eq $you->make($love) ;
    }

Re: Re: CB client problems
by gnu@perl (Pilgrim) on Sep 30, 2002 at 18:22 UTC
    DUDE! YOU SO TOTALLY ROCK.

    Thanks for the link, I'm all set now.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://201764]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (4)
As of 2024-04-24 07:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found