Help for this page

Select Code to Download


  1. or download this
    In MyClass.pm:
    {
    ...
    
    # call some function from mymodule
    }
    
  2. or download this
    In myapp.pl:
    use mymodule;
    
    # call some function from mymodule
    
  3. or download this
    #!/usr/bin/perl -w
    
    ...
    use test_func;
    
    test_me('in main');
    
  4. or download this
    sub test_me {
        my $txt = shift;
    ...
    }
    
    1;
    
  5. or download this
    Undefined subroutine &main::test_me called at test_loading.pl line 25