> -----Original Message-----
> From: Atul Vohra [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, August 22, 2001 4:21 PM
> To: [EMAIL PROTECTED]
> Subject: Sending Octal Strings in a variable
> 
> 
> Hi,
> 
> I need to pass function keys in octal to a Cisco 
> router/terminal server. I used the telnet module and able to 
> use something like:
> 
> t->cmd("\033OV");   ### sending PF7
> 
> this worked. What I wanted to do is read the function key 
> translations from a flat file and use variables instead 
> ex: t->cmd($pf7)
> i.e. no hardcoding of the key translations.
> But when I do this the string \033OV is not translated into 
> PF7 instead actual string "\033OV" is passed to the Cisco 
> router. Please help.

This is a FAQ. See:

   perldoc -q octal
   perldoc -f oct

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to