Help for this page

Select Code to Download


  1. or download this
    sub foo {
        my $self = shift;
        my @args = @_;
        $self->{bar} = ref ( $_[0] ) ? $_[0] : \@args;
    }
    
  2. or download this
    sub foo {
        my $self = shift;
       $self->{bar} = ref ( $_[0] ) ? $_[0] : [ @_ ];
    }