Eternius: regexp - Leerzeichen ausschneiden

Beitrag lesen

Hallo,

was möchtest du eigentlich machen?
  wenn du nur
  param=value,value

in
  $h->{param}='value,value';

basteln willst

~~~perl

foreach(@data){
    $=~s/\s//g;
    my ($p,$values)=split(/=/,$
);
    $h->{$p}=$values;
  }

  
  natürlich nur, wenn in den einstellungen keine leerzeichen erlaubt sind.  
  
gruss

-- 
no strict;  
no warnings;  
  
"May I introduce you to OSX. It even runs on cheap intel hardware."  
  
"I doubt that. It could run on cheap intel hardware, but Apple will restrict to expensive Apple hardware, which consists of cheap Intel hardware."