Help for this page

Select Code to Download


  1. or download this
    $ perl -le'
       print(exists(&Foo::some_sub)?1:0, defined(&Foo::some_sub)?1:0);
    ...
    10
    11
    foo
    
  2. or download this
    $ perl -le'
       print(exists($Foo::{not_a_sub})?1:0);
    ...
    '
    0
    1