~ubuntu-branches/ubuntu/intrepid/perl-doc-html/intrepid

« back to all changes in this revision

Viewing changes to functions/send.html

  • Committer: Bazaar Package Importer
  • Author(s): Roberto C. Sanchez
  • Date: 2008-05-17 20:14:19 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20080517201419-qgbuogq2ckkdisyi
Tags: 5.10.0-2
Supersede botched upload of 5.10.0-1.

Show diffs side-by-side

added added

removed removed

Lines of Context:
54
54
      <h2>Links:</h2>
55
55
      <ul>
56
56
        <li><a href="http://search.cpan.org">CPAN</a></li>
 
57
        <li><a href="http://www.perl.org">Perl.org</a></li>
57
58
        <li><a href="http://www.perl.com">Perl.com</a></li>
58
 
        <li><a href="http://www.perl.org">Perl.org</a></li>
 
59
        <li><a href="http://perlbuzz.com">Perl Buzz</a></li>
 
60
        <li><a href="http://www.perlfoundation.org/perl5/index.cgi">Perl 5 Wiki</a></li>
 
61
        <li><a href="http://jobs.perl.org">Perl Jobs</a></li>
59
62
        <li><a href="http://www.pm.org">Perl Mongers</a></li>
60
63
        <li><a href="http://www.perlmonks.org">Perl Monks</a></li>
61
64
        <li><a href="http://planet.perl.org">Planet Perl</a></li>
65
68
      <ul>
66
69
        <li>Site maintained by<br><a href="http://perl.jonallen.info">Jon Allen</a>
67
70
            (<a href="http://perl.jonallen.info">JJ</a>)</li>
68
 
        <li class="spaced">Last updated on<br>23 April 2006</li>
 
71
        <li class="spaced">Last updated on<br>23 December 2007</li>
69
72
        <li class="spaced">See the <a href="http://perl.jonallen.info/projects/perldoc">project page</a> for
70
73
        more details</li>
71
74
      </ul>
76
79
    <div id="centerContent">
77
80
      <div id="contentHeader">
78
81
        <div id="contentHeaderLeft"><a href="#" onClick="showLeft()">Show navigation</a></div>
79
 
        <div id="contentHeaderCentre">-- Perl 5.8.8 documentation --</div>
 
82
        <div id="contentHeaderCentre">-- Perl 5.10.0 documentation --</div>
80
83
        <div id="contentHeaderRight"><a href="#" onClick="showRight()">Show toolbar</a></div>
81
84
      </div>
82
85
      <div id="breadCrumbs"><a href="../index.html">Home</a> &gt; <a href="../index-language.html">Language reference</a> &gt; <a href="../index-functions.html">Functions</a> &gt; send</div>
91
94
<p>Sends a message on a socket.  Attempts to send the scalar MSG to the
92
95
SOCKET filehandle.  Takes the same flags as the system call of the
93
96
same name.  On unconnected sockets you must specify a destination to
94
 
send TO, in which case it does a C <code class="inline">sendto</code>
 
97
send TO, in which case it does a C <code class="inline"><span class="w">sendto</span></code>
95
98
.  Returns the number of
96
99
characters sent, or the undefined value if there is an error.  The C
97
100
system call sendmsg(2) is currently unimplemented.  See
99
102
<p>Note the <i>characters</i>: depending on the status of the socket, either
100
103
(8-bit) bytes or characters are sent.  By default all sockets operate
101
104
on bytes, but for example if the socket has been changed using
102
 
binmode() to operate with the <code class="inline"><span class="j">:</span><a class="l_w" href="../utf8.html">utf8</a></code>
103
 
 I/O layer (see <a href="open.html">open</a>, or the
104
 
<code class="inline"><a class="l_k" href="../functions/open.html">open</a></code> pragma, <a href="../open.html">open</a>), the I/O will operate on UTF-8 encoded
105
 
Unicode characters, not bytes.  Similarly for the <code class="inline"><span class="j">:</span><a class="l_w" href="../encoding.html">encoding</a></code>
106
 
 pragma:
107
 
in that case pretty much any characters can be sent.</p>
 
105
binmode() to operate with the <code class="inline"><span class="j">:</span><span class="i">encoding</span><span class="s">(</span><span class="w">utf8</span><span class="s">)</span></code>
 
106
 I/O layer (see
 
107
<a href="#open">"open"</a>, or the <code class="inline"><a class="l_k" href="../functions/open.html">open</a></code> pragma, <a href="../open.html">open</a>), the I/O will operate on UTF-8
 
108
encoded Unicode characters, not bytes.  Similarly for the <code class="inline"><span class="j">:</span><span class="w">encoding</span></code>
 
109
 
 
110
pragma: in that case pretty much any characters can be sent.</p>
108
111
</li>
109
112
</ul>
110
113
</div>
124
127
          <!--<select name="r"><option value="1" selected>Go to top result<option value="0">Show results list</select>-->
125
128
        </form>
126
129
      </p>
 
130
      <script language="JavaScript" type="text/javascript" src="/perl-version.js"></script>
127
131
      <h2>Labels:</h2>
128
132
      <p>
129
133
        <a href="#" onClick="addLabel('send','functions/send.html')">Add this page</a>