Moin Moin !
$line='some key = some value (may have "=" inside)';
($key,$value)=split /=/,$line,2;
print $key; # 'some key '
print $value; # ' some value (may have "=" inside)'
Mit split /\s*=\s*/,$line,2 werden die Spaces rund ums "=" auch noch entfernt.
Alexander
--
Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so!"
Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so!"