On 07/15/2016 11:42 PM, AC P wrote:
Hello Perl gurus,

I'm hoping someone here can provide a solution since I'm stuck.

I'm trying to send TL1 commands resembling "RTRV-ALM-ALL;" (the simplest command you can send as an example here) via Net::SSH::Expect but they keep getting interpolated before even reaching the TL1 device.

i think you misunderstand what interpolation means. in perl a scalar in a string is interpolated to its value.

I predictably receive:

Argument "$command" isn't numeric in subtraction (-) at then it gives me my directory.
that feels like you are quoting $command and it is NOT being interpolated before it gets sent to the TL1.

I think the solution lies in sending unicode e.g. chr(073) for ";" and chr(055) for "-" both of which are required to send the command and tell the TL1 device to process it.
those aren't unicode chars (well they are but they are in the first 8 bit set so they are just ascii).

why don't you post some of the code as it is hard to tell what you are actually doing wrong with just your conjectures.

thanx,

uri



--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to