Help for this page

Select Code to Download


  1. or download this
    @anArray = ref $xmlin->{$key} ? @{$xmlin->{$key}} : $xmlin->{$key};
    
  2. or download this
    @anArray = map { my $x; ref( $x = $xmlin->{$_} ) eq 'ARRAY' ? @$x : $x
    + } keys %$xmlin;