Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.3 / 3....
  • LibreOffice 3.6.6 / 4.0.3
  • MPlayer 1.1.1
  • systemd 204
  • Arch Linux 2013.05.01
  • Blender 2.67a
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > Programming > Libraries

    Leading::Zeros 0.0.2

    Download button

    No screenshots available
    Downloads: 378  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Damian Conway | More programs
    Perl Artistic License / FREE
    January 17th, 2007, 05:05 GMT
    ROOT / Programming / Libraries

     Read user reviews (0)  Refer to a friend  Subscribe

    Leading::Zeros description

    Leading::Zeros is a Perl module to defuse Perl's octal number representation.

    Leading::Zeros is a Perl module to defuse Perl's octal number representation.

    SYNOPSIS

    no Leading::Zeros;

    my $answer = 042; # dies

    This module offers some control over Perl's insidious "leading-zero-means-octal" notation.

    INTERFACE

    If the module is loaded via a no:

    no Leading::Zeros;

    then any subsequent attempt to use an integer constant with a leading zero, causes an exception to be thrown. The intention is to prevent you from doing so by accident.
    If the module is loaded via a use, like so:

    use Leading::Zeros;

    then it silently pretends that any octal value (say, 042) was really a decimal value (i.e. 42).

    If the module is loaded with the special -warning flag:

    use Leading::Zeros -warning;

    then octal numbers are treated as usual (i.e. as octals), but a warning is issued. See below.

    Product's homepage

    Requirements:

    · Perl

      


    TAGS:

    defuse octal number | number representation | Perl module | Leading::Zeros | defuse | Perl

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM