Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Please Explain this Function

by binf-jw (Monk)
on May 15, 2009 at 13:00 UTC ( [id://764264]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $msg = pack("a".$maxMsgCodeLength."ia*",$msgCode, $port, $ip);
    
  2. or download this
      $msgCode = $msgCode.(" " x ($maxMsgCodeLength-length($msgCode)));
  3. or download this
    my $msg = pack( "a10ia*", $msgCode, $port, $ip );
    
  4. or download this
    my $msg = pack( "a20 i a*", $msgCode, $port, $ip );
    
  5. or download this
    printf( "%s %d %s", $msgCode, $port, $ip );
    
  6. or download this
    print getMessage ( 'StartBE', $ip, $port ), "\n";
    
    ...
        my ( $msgCode, $ip, $port) = @_;
        return pack "A10 i A*", $msgCode, $port, $ip;
    }
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (5)
As of 2024-04-25 18:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found