Single quotes don't interpolate. Use double-quotes so that you get variable interpolation. Or no quotes at all if a variable by itself contains the entire field.
my $gsm = new Device::Gsm( port => $variable ....
...or...
my $gsm = new Device::Gsm( port => "stuff/plus/$interoplation"...
Dave
In reply to Re: Any idea how to pass a variable there ?
by davido
in thread Any idea how to pass a variable there ?
by Sombrerero_loco
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |