Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: Poor Man's Perl6 Exegesis (you get what you pay for)

by TheDamian (Vicar)
on Jan 27, 2002 at 18:00 UTC ( [id://141933]=note: print w/replies, xml ) Need Help??

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;
        }
    }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://141933]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (8)
As of 2024-04-23 09:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found