I have also had confusions like this in the earlier stages, but now if I have confusion I will just open the module code and understand it.
For example, if I want to know what can_read is doing in IO::Select, I will just do this on my system
my system details OS:Debian GNU/Linux 4.0 Kernel:2.6.18-4-686 GNU/Linux Perl: 5.8.8
steps I will follow
$ locate Select.pm /usr/lib/perl/5.8.8/IO/Select.pm /usr/share/perl/5.8.8/Pod/Select.pm /usr/share/perl5/Debconf/AutoSelect.pm /usr/share/perl5/Debconf/Element/Dialog/Select.pm /usr/share/perl5/Debconf/Element/Editor/Select.pm /usr/share/perl5/Debconf/Element/Gnome/Select.pm /usr/share/perl5/Debconf/Element/Kde/Select.pm /usr/share/perl5/Debconf/Element/Noninteractive/Select.pm /usr/share/perl5/Debconf/Element/Select.pm /usr/share/perl5/Debconf/Element/Teletype/Select.pm /usr/share/perl5/Debconf/Element/Web/Select.pm /usr/share/perl5/HTML/Widget/Element/Select.pm I will open the below module in vim editor $vim /usr/lib/perl/5.8.8/IO/Select.pm just search the pattern /b can_read I have got this sub can_read { my $vec = shift; my $timeout = shift; my $r = $vec->[VEC_BITS]; defined($r) && (select($r,undef,undef,$timeout) > 0) ? handles($vec, $r) : (); } after seeing this I will know what can_read can do. I have done this for lot of perl modules and I have learnt some effici +ent techniques in this process, I am still learning, this is just my +tips to you.

Vivek
-- In accordance with the prarabdha of each, the One whose function it is to ordain makes each to act. What will not happen will never happen, whatever effort one may put forth. And what will happen will not fail to happen, however much one may seek to prevent it. This is certain. The part of wisdom therefore is to stay quiet.

In reply to Re: Difference between can_read() and select() in IO::Select by targetsmart
in thread Difference between can_read() and select() in IO::Select by anna_black

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.