- or download this
push @chat, "$self->{ID}\t$1";
- or download this
$chat[$i] =~ /(.+?)\s(.+)[\n\r]*/;
print $socket $2,$EOL if ( $1 ne $ID && $2 ne $kill);
- or download this
%E = (map { $1 => $2; /(.+):(.+)/; } (split /;/, $Elm));
- or download this
/(.+):(.+)/;
- or download this
$1 => $2;
- or download this
sub _split {
/(.+):(.+)/;
return ($1 => $2) if ($1);
}
- or download this
%E = (map { _split($_) } (split /;/, $Elm));
- or download this
$Elm =''; # to rewrite $E
foreach ( split /;/, $Elm ) {
$Elm .= "$_;" unless ( $_ =~ /^$ID\:/);
}
cond_broadcast($Elm);
- or download this
my $tmp = '';
foreach ( split /;/, $Elm ) {
...
}
$Elm = $tmp;
cond_broadcast($Elm);