koti688 has asked for the wisdom of the Perl Monks concerning the following question:
Hello Mates , can you please Tell what $msg Returns here.
I want to know what pack and Unpack do excatlymy $maxMsgCodeLength = 15; my $ip= 192.168.106.60; my $port= 9000; sub pStartBEMsg { my ($ip, $port) = @_; my $msgCode = "StartBE"; $msgCode = $msgCode.(" " x ($maxMsgCodeLength-length($msgCode))); my $msg = pack("a".$maxMsgCodeLength."ia*",$msgCode, $port, $ip); return $msg; }
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Please Explain this Function
by binf-jw (Monk) on May 15, 2009 at 13:00 UTC | |
by koti688 (Sexton) on May 15, 2009 at 13:12 UTC | |
Re: Please Explain this Function
by targetsmart (Curate) on May 15, 2009 at 10:51 UTC | |
Re: Please Explain this Function
by johngg (Canon) on May 15, 2009 at 13:17 UTC | |
Re: Please Explain this Function
by apl (Monsignor) on May 15, 2009 at 11:27 UTC | |
by Nkuvu (Priest) on May 15, 2009 at 17:33 UTC | |
by apl (Monsignor) on May 16, 2009 at 00:23 UTC | |
by Nkuvu (Priest) on May 16, 2009 at 06:06 UTC |
Back to
Seekers of Perl Wisdom