Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
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 drinking their drinks and smoking their pipes about the Monastery: (6)
As of 2014-12-27 09:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (176 votes), past polls