http://www.perlmonks.org?node_id=1040622


in reply to Any idea how to pass a variable there ?

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