Help for this page

Select Code to Download


  1. or download this
    $singleton->{xml_filename} = $_[0];
    $singleton->{hostlist}     = \@hostlist;
    
  2. or download this
    Dancer->new;     # invocant is "Dancer"
    $obj->dance;     # invocant is $obj
    
  3. or download this
    my @components = @{ $config->{host}->{component} };
    foreach (@components)
    {
       push @hostList, $_->{component_name};
    }
    
  4. or download this
    push @hostList,
       map { $_->{component_name} }
       @{ $config->{host}->{component} };
    
  5. or download this
    {
        package MyConfig;
    ...
    my @hostlist = @{ $config->hostlist };
    
    print "@hostlist";