Help for this page

Select Code to Download


  1. or download this
    sub import($pkg : ARRAY $export=undef, ARRAY $ok=undef, HASH $tags=und
    +ef) {
    
  2. or download this
    ARRAY $export //= undef
    
  3. or download this
        my $from_pkg=caller.package;
    
  4. or download this
        my $from_pag = caller.MY.package;
    
  5. or download this
    sub myimport($exp_from : *@symbols=() : *@options=()) {
    
  6. or download this
    sub myimport($exp_from         # expect a scalar as arg 1
                 :                 # then expect a colon
    ...
                 :                 # until another colon
                 *@options=()      # then flatten any more args
                ) {
    
  7. or download this
        if(defined $export) {
            @Exporter::From::EXPORT = $export;
    ...
            %Exporter::From::EXPORT_TAGS = $tags;
        }
    }