Help for this page

Select Code to Download


  1. or download this
    $ perl -Mstrict -Mwarnings -e 'sub allVars($no1) { 1 }'
    Illegal character in prototype for main::allVars : $no1 at -e line 1.
    
  2. or download this
    my ($self, $no1, $no2, $name1, $name2) = @_;
    
  3. or download this
    $object->allVars(...)
    
  4. or download this
    #!/usr/bin/env perl -l
    
    ...
    
    my $obj = Some::Module::->new;
    $obj->all_vars(qw{a b c d});
    
  5. or download this
    all vars = Some::Module=HASH(0x7fc55c003098) a b c d