There are some other things I would do differently (like:sub get_sensor_id($) { my ($sensor) = @_; print "sensor input: $sensor\n"; return 0; }
), but this should address your primary concern.$value =~ s/^\s+|\s+$//g;
In reply to Re: Wrong content of variable passed to sub
by state-o-dis-array
in thread Wrong content of variable passed to sub
by olafmar
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |