mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-21 07:56:03 +00:00
98_structure.pm: simplify argument parsing (Forum #119504)
git-svn-id: https://svn.fhem.de/fhem/trunk@23809 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
08c29a2cb3
commit
e65f03ab97
@ -122,7 +122,7 @@ structure_setDevs($;$)
|
|||||||
$def = "$hash->{NAME} structure $hash->{DEF}" if(!$def);
|
$def = "$hash->{NAME} structure $hash->{DEF}" if(!$def);
|
||||||
my $c = $hash->{".memberHash"};
|
my $c = $hash->{".memberHash"};
|
||||||
|
|
||||||
my @a = split("[ \t][ \t]*", $def);
|
my @a = split(/\s/, $def);
|
||||||
my $devname = shift(@a);
|
my $devname = shift(@a);
|
||||||
my $modname = shift(@a);
|
my $modname = shift(@a);
|
||||||
my $stype = shift(@a);
|
my $stype = shift(@a);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user