Help for this page

Select Code to Download


  1. or download this
    package General;
    use AutoLoader qw(AUTOLOAD);
    ...
        func1 func2 ...
    );
    1;
    
  2. or download this
    #!/usr/bin/perl
    # file prog1.pl
    ...
    ; # ... more perl code
    
    # end main
    
  3. or download this
    #!/usr/bin/perl
    # file func1.al
    ...
        func1(@ARGV);
    }
    1; # <-- important!
    
  4. or download this
    package General; 
    # optionally put your subs here to predeclare them at package loading
    sub func1 ;
    1; # last line, important
    
  5. or download this
    #!/usr/bin/perl
    
    use General qw(func1 otherfunc); # functions from General you want to 
    +call directly
    
    my $result = func1($arg_a, $arg_b);