Help for this page

Select Code to Download


  1. or download this
    sub foo {}
    sub bar;
    ...
    print('',                                  @names);
    print('exists',  map { exists(&$_)  ?1:0 } @names);
    print('defined', map { defined(&$_) ?1:0 } @names);
    
  2. or download this
            foo     bar     baz
    exists  1       1       0
    defined 1       0       0
    
  3. or download this
    >perl -e"sub bar; bar()"
    Undefined subroutine &main::bar called at -e line 1.