Help for this page

Select Code to Download


  1. or download this
    sub get_array_ref(\@) { $_[0] }
    GetOptions( 'array=s' => get_array_ref(my @array) );
    print("@array\n");
    
  2. or download this
    GetOptions( 'array=s@' => \(my $array) );
    print("@$array\n");