Help for this page

Select Code to Download


  1. or download this
    use strict;
    
    ...
    my ($method, @params) = ('myMethod', 'foo');
    my $object = bless {};
    $object->$method(@params);
    
  2. or download this
    :! perl -w meth.pl
    Woohoo, you have successfully passed in a parameter (foo).