Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: Any idea how to pass a variable there ?

by davido (Archbishop)
on Jun 25, 2013 at 16:09 UTC ( #1040622=note: print w/ replies, xml ) Need Help??


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


Comment on Re: Any idea how to pass a variable there ?
Select or Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1040622]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (13)
As of 2015-07-07 21:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (93 votes), past polls