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

« back to all changes in this revision

Viewing changes to functions/sysread.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; sysread</div>
109
112
<p>There is no syseof() function, which is ok, since eof() doesn't work
110
113
very well on device files (like ttys) anyway.  Use sysread() and check
111
114
for a return value for 0 to decide whether you're done.</p>
112
 
<p>Note that if the filehandle has been marked as <code class="inline"><span class="j">:</span><a class="l_w" href="../utf8.html">utf8</a></code>
 
115
<p>Note that if the filehandle has been marked as <code class="inline"><span class="j">:</span><span class="w">utf8</span></code>
113
116
 Unicode
114
117
characters are read instead of bytes (the LENGTH, OFFSET, and the
115
118
return value of sysread() are in Unicode characters).
116
119
The <code class="inline"><span class="j">:</span><span class="i">encoding</span><span class="s">(</span>...<span class="s">)</span></code>
117
 
 layer implicitly introduces the <code class="inline"><span class="j">:</span><a class="l_w" href="../utf8.html">utf8</a></code>
 
120
 layer implicitly introduces the <code class="inline"><span class="j">:</span><span class="w">utf8</span></code>
118
121
 layer.
119
 
See <a href="binmode.html">binmode</a>, <a href="open.html">open</a>, and the <code class="inline"><a class="l_k" href="../functions/open.html">open</a></code> pragma, <a href="../open.html">open</a>.</p>
 
122
See <a href="#binmode">"binmode"</a>, <a href="#open">"open"</a>, and the <code class="inline"><a class="l_k" href="../functions/open.html">open</a></code> pragma, <a href="../open.html">open</a>.</p>
120
123
</li>
121
124
</ul>
122
125
</div>
136
139
          <!--<select name="r"><option value="1" selected>Go to top result<option value="0">Show results list</select>-->
137
140
        </form>
138
141
      </p>
 
142
      <script language="JavaScript" type="text/javascript" src="/perl-version.js"></script>
139
143
      <h2>Labels:</h2>
140
144
      <p>
141
145
        <a href="#" onClick="addLabel('sysread','functions/sysread.html')">Add this page</a>