Ramprasad A Padmanabhan wrote:
> I am using Net::Telnet in one of my perl scripts. Problem is every
> time it runs with use warnings It prints out warnings like
>
> Unrecognized escape \s passed through at ....
>
> Where that line is
> $t->waitfor("/ord\s*:\s*/");
>
> Which is perfectly OK ( I think )
No, it's not OK, if you're expecting the backslashes to be passed on to
waitfor(), as I assume you are. If you aren't expecting them to be passed
on, they don't need to be there. Hence the warning.
> Can someone tell how to get rid of this warning ?
Use single quotes.
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>