On Tue, 18 Jan 2005 15:15:00 +0000, RichT <[EMAIL PROTECTED]> wrote:

> Grate that worked, the varible must of have a \r and a \n at the end.
> thank you very much...
> 
> how would i find our what escape chars are in a varible?
> or is there a way to print out a string with out perl translating the
> escape chars?
> 
>  Thank you again, Ritchie

I believe Windows use \r\n, while most(?) *nix' use \n. 
What happened is probably that when your script runs:

 for my $found ($config->get('interface')->all($interfaceTypes)) 

$config-get.. just returns the whole line(or the last part of the line) 
from a file that has windows line-ending(\r\n).

Tor

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to