Help for this page

Select Code to Download


  1. or download this
    use warnings;
    use strict;
    ...
    $obj->foo("abc"); # Now foo() has an extra first element in @_
    foo("abc"); # die() for Bareword from 'strict subs'
    
  2. or download this
    package Two;
    
    ...
    sub new { ... }
    sub newMethod { ... }
    sub overrideOldMethod { ... }