Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: Passing message between 2 sockets

by golux (Chaplain)
on Apr 11, 2016 at 01:30 UTC ( [id://1160076]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    if (...) {
       if (...) {
    ...
    } else {
        return 0;
    }
    
  2. or download this
        ($msg =~ /^([^\s]+)/) or return 0;
        $alias = $1;
    ...
    
        ($msg =~ /-auto_connect="([^"]+)"/) or return 0;
        $auto_connect = $1;
    
  3. or download this
       # Regular expressions to apply
       my $a_regexes = [
    ...
       # Assign to the desired variables
       my ($alias, $address, $port, $nick,
           $password, $prefix, $auto_connect) = @results;
    
  4. or download this
       # Define the tokens we wish to extract
       my @tokens = qw( address port nick password prefix auto_connect );
    ...
    
       # Assign to the desired variables
       my ($address, $port, $nick, $password, $prefix, $auto_connect) = @r
    +esults;
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (5)
As of 2024-04-20 11:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found