In this particular code, comp_includes_z doesn't have any function. All that does is indicate that when comparing two points you want to exclude the Z value from the comparison. For example:

use Geo::ShapeFile::Point comp_includes_z => 0; my $p1 = Geo::ShapeFile::Point->new(X => 3, Y => 5, Z => 10); my $p2 = Geo::ShapeFile::Point->new(X => 3, Y => 5, Z => 25); # this will return false if comp_includes_z is true, # and return true if comp_includes_z is false if($p1 == $p2) { print "these points are the same spot\n"; }

We're not surrounded, we're in a target-rich environment!

In reply to Re^2: Geo::ShapeFile by jasonk
in thread Geo::ShapeFile by penny

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.