����JFIF���������
__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
/usr/bin/perl -w
#
# ircwatcher - watch an IRC stream and do things when
# interesting things occur
#
# This script demonstrates the use of dispatch table. One
# regular expression matching everthing, and then handing
# off the captured submatches to a callback.
#
# Try changing the read of STDIN to DATA for a quick demo.
#
# Acknowledgements to David "Sniper" Rigaudi�re for the
# idea.
#
# Copyright (C) David Landgren 2005
use strict;
use Regexp::Assemble;
my %dispatch = (
'^\*\*\* (\S+) joined channel (\S+)$' => \&joined,
'^\*\*\* (\S+) left channel (\S+) reason (.*)$' => \&left,
'^q$' => sub { exit },
);
my $re = Regexp::Assemble->new
->track(1)
->add(keys %dispatch);
sub joined {
my ($who, $channel) = @_;
print "$who joined $channel\n";
}
sub left {
my ($who, $channel, $reason) = @_;
print "$who left $channel saying $reason\n";
}
while( <STDIN> ) {
chomp;
if ($re->match($_)) {
$dispatch{$re->matched}->($re->capture);
}
else {
print "ignored <$_>\n";
}
}
__DATA__
*** david joined channel foo
hello
*** david left channel bar reason that's all folks
q
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| hostmatch | Folder | 0755 |
|
|
| assemble | File | 4.88 KB | 0644 |
|
| debugging | File | 2.82 KB | 0644 |
|
| failure.01.pl | File | 1.56 KB | 0644 |
|
| fee | File | 284 B | 0644 |
|
| file.1 | File | 20 B | 0644 |
|
| file.2 | File | 21 B | 0644 |
|
| file.3 | File | 16 B | 0644 |
|
| file.4 | File | 19 B | 0644 |
|
| ircwatcher | File | 1.14 KB | 0644 |
|
| naive | File | 1.43 KB | 0644 |
|
| roman | File | 610 B | 0644 |
|
| stress-test.pl | File | 2.73 KB | 0644 |
|
| tld | File | 608 B | 0644 |
|
| track-5.10 | File | 308 B | 0644 |
|
| unquotemeta | File | 395 B | 0644 |
|