This is a fun little gotcha with version strings. The best way to require perl5.6.0 is with require 5.006;. Observe:
% perl5005 -e 'require 5.6' Perl 5.6 required--this is only version 5.00503, stopped at -e line 1. % perl56 -e 'require 5.6' Perl v5.600.0 required--this is only v5.6.0, stopped (did you mean v5. +6.0?) at -e line 1. % perl56 -e 'require 5.6.0' % perl5005 -e 'require 5.6.0' Can't locate 5.60 in @INC (@INC contains: /usr/lib/perl5/5.00503/i386- +linux /usr/lib/perl5/5.00503 /usr/lib/perl5/site_perl/5.005/i386-linu +x /usr/lib/perl5/site_perl/5.005 .) at -e line 1. % perl5005 -e 'require 5.006' Perl 5.006 required--this is only version 5.00503, stopped at -e line +1. % perl56 -e 'require 5.006' %
5.6 doesn't work because perl5.6 interprets it as 5.600 instead of 5.006. 5.6.0 doesn't work because perl5.005 and earlier interpret it as a "5.60" and try to load 5.60.pm. 5.006 is the only form that works in old and new versions of Perl.

In reply to fun with require version by chipmunk
in thread Meta-Obfuscation, explanation of by clintp

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.