Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl -w
    
    ...
        &testbaz ;
    } ;
    warn $@ if $@ ;
    
  2. or download this
    package Foo ;
    use base qw(Class::DBI) ;
    ...
    sub testfoo {
        print "It works\n" ;
    }
    
  3. or download this
    package Goo ;
    use base qw(Class::DBI) ;
    ...
    }
    
    1 ;
    
  4. or download this
    package Biz ;
    use base qw(CGI) ;
    ...
    }
    
    1 ;
    
  5. or download this
    package Baz ;
    use base qw(CGI) ;
    ...
    }
    
    1 ;
    
  6. or download this
    $ perl test.pl
    It works
    It works
    Undefined subroutine &main::testbiz called at test.pl line 19.
    It works
    
  7. or download this
    [mcdave@maia ~]$ uname -a
    Linux maia 2.6.18-164.el5 #1 SMP Tue Aug 18 15:51:48 EDT 2009 x86_64 x
    +86_64 x86_64 GNU/Linux
    ...
    It works
    Undefined subroutine &main::testbiz called at test.pl line 19.
    It works
    
  8. or download this
    [mcdave@trowel ~]$ uname -a
    Linux trowel 2.6.18-164.el5 #1 SMP Tue Aug 18 15:51:48 EDT 2009 x86_64
    + x86_64 x86_64 GNU/Linux
    ...
    It works
    Undefined subroutine &main::testbiz called at test.pl line 19.
    It works