Softpedia
 


LINUX CATEGORIES:



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

    B::LintSubs 0.04

    Download button

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

    License / Price:

    Last Updated:

    Category:
    Paul Evans | More programs
    Perl Artistic License / FREE
    June 27th, 2007, 00:05 GMT
    ROOT / Programming / Libraries

     Read user reviews (0)  Refer to a friend  Subscribe

    B::LintSubs description

    B::LintSubs is a Perl compiler backend to check sub linkage.

    B::LintSubs is a Perl compiler backend to check sub linkage.

    SYNOPSIS

    perl -MO=LintSubs [FILE] [-e PROGRAM]

    When using use strict, subroutine names are not checked at the callsite; this makes the following a perfectly valid program at compiletime, that only blows up at runtime

    use strict;
    foobar();

    When using the B::LintSubs checker instead, this is detected:

    $ perl -MO=LintSubs -e 'use strict;
    foobar();'
    Undefined subroutine foobar called at -e line 2

    Imported functions from other modules are of course detected:

    $ perl -MO=LintSubs -e 'use strict;
    use List::Util qw( max );
    $_ = max( 1, 2, 3 )'
    -e syntax OK

    In order to handle situations where external code is conditionally referenced at runtime, any fully-qualified references to other functions are printed with a warning, but not considered fatal. The programmer is assumed to Know What He Is Doing in this case:

    $ perl -MO=LintSubs -e 'if( 1 ) { require Data::Dumper;
    Data::Dumper::Dump( "Hello" ) }'

    Unable to check call to Data::Dumper::Dump in foreign package at -e line 1

    -e syntax OK

    Product's homepage

    Requirements:

    · Perl

      


    TAGS:

    Perl compiler | compiler backend | check sub linkage | B::LintSubs | Perl | compiler

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

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