Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: Building an anonymous subroutine

by stephen (Priest)
on Aug 13, 2002 at 03:22 UTC ( #189698=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    package Encoder;
    
    ...
       $self->common_stuff($text);
       $self->other_stuff($text);
    }
    
  2. or download this
    # In Encoder/B.pm
    package Encoder::B;
    ...
       my $new_text = $text;
       $new_text =~ s/a/c/g;
    }
    
  3. or download this
    use Encoder::B;
    use Encoder::Whatever;
    ...
      return $Encoder_Table{$e}->new();
    }
    
  4. or download this
    my $encoder = encoder_factory($whatever_e_is);
    print $encoder->encode("Hahahaha!");
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (12)
As of 2014-08-29 10:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (279 votes), past polls