Help for this page

Select Code to Download


  1. or download this
    #! /usr/bin/perl
    use warnings;
    ...
    use test();
    my $output = testroutine();
    print $output, "\n";
    
  2. or download this
    #! /usr/bin/perl
    use warnings;
    ...
    use test;
    my $output = testroutine();
    print $output, "\n";
    
  3. or download this
    Undefined subroutine &main::testroutine called at ./test.pl line 8.
    
  4. or download this
    $ perl -e 'map {print $_,"\n"} @INC'
    /usr/lib/perl5/5.8/cygwin
    ...
    /usr/lib/perl5/vendor_perl/5.8/cygwin
    /usr/lib/perl5/vendor_perl/5.8
    .
    
  5. or download this
    #! /usr/bin/perl
    use warnings;
    ...
    use test();
    my $output = testroutine();
    print $output, "\n";
    
  6. or download this
    This is a test
    
  7. or download this
    sub testroutine {
            return "This is a test";
    }
    1;